Skip to content

Commit 34afb89

Browse files
author
Wei Li
committed
all requests http 1.0
1 parent 002e49d commit 34afb89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

proxylab-handout/proxy.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ void forward(int fromfd)
148148
}
149149
sem_post(&mutex);
150150

151-
sprintf(request_buf, "%s %s %s\r\n", method, dir, version);
151+
/* According to the requirement, all requests are
152+
* forwarded as HTTP/1.0
153+
*/
154+
sprintf(request_buf, "%s %s %s\r\n", method, dir, "HTTP/1.0");
152155

153156
int has_host = 0;
154157
// request headers

0 commit comments

Comments
 (0)