1 |
diff -Nur corkscrew-2.0.orig/corkscrew.c corkscrew-2.0/corkscrew.c |
2 |
--- corkscrew-2.0.orig/corkscrew.c 2001-08-23 20:27:32.000000000 +0200 |
3 |
+++ corkscrew-2.0/corkscrew.c 2006-04-04 16:12:43.000000000 +0200 |
4 |
@@ -176,6 +176,7 @@ |
5 |
#endif |
6 |
char *host = NULL, *desthost = NULL, *destport = NULL; |
7 |
char *up = NULL; |
8 |
+ char *tmp = NULL; |
9 |
int port, sent, setup, code, csock; |
10 |
fd_set rfd, sfd; |
11 |
struct timeval tv; |
12 |
@@ -262,6 +263,11 @@ |
13 |
fprintf(stderr, "Proxy could not open connnection to %s: %s\n", desthost, descr); |
14 |
exit(-1); |
15 |
} |
16 |
+ if (tmp = strstr(buffer, "\r\n\r\n")) |
17 |
+ { |
18 |
+ tmp += 4; |
19 |
+ write(1, tmp, strlen(tmp)); |
20 |
+ } |
21 |
} |
22 |
} |
23 |
if (FD_ISSET(csock, &sfd) && (sent == 0)) { |