aboutsummaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-01-15 19:21:55 +0100
committerYang Tse <yangsita@gmail.com>2012-01-15 19:21:55 +0100
commit6d62c5a6fcd17b3e8c65326612818b8a8b94d690 (patch)
tree654f605b9d09b06c0d43c92d91fd9950b58381c1 /lib/http_proxy.c
parentf1092b387e1fa82db35c75a217bda91e94f0ee6e (diff)
Curl_proxyCONNECT() trace known bug #39
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r--lib/http_proxy.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index fbf23a9d8..b20034781 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -409,8 +409,15 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
keepon=FALSE;
}
}
- else
+ else {
keepon = FALSE;
+ if(200 == data->info.httpproxycode) {
+ if(gotbytes - (i+1))
+ failf(data, "Proxy CONNECT followed by %zd bytes "
+ "of opaque data. Data ignored (known bug #39)",
+ gotbytes - (i+1));
+ }
+ }
break; /* breaks out of for-loop, not switch() */
}