Skip to content

Commit bf0d9b1

Browse files
committed
fix proxy content bug
1 parent 8d521ff commit bf0d9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxylab-handout/proxy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ void forward_response(int infd, int outfd)
4949
string_malloc(&response);
5050

5151
while (Rio_readlineb(&rio, buf, MAXLINE)) {
52+
printf("%s\n", buf);
5253
string_append(&response, buf);
53-
Rio_readlineb(&rio, buf, MAXLINE);
5454
}
5555
#ifdef DEBUG
5656
fprintf(stderr, "response:\n%s", string_cstr(response));

0 commit comments

Comments
 (0)