diff options
author | dequis <dx@dxzone.com.ar> | 2015-01-16 16:50:24 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-01-16 16:50:24 -0300 |
commit | 840394e847eb4f72443facf8b923741698c3e9a6 (patch) | |
tree | d8f6a0ed46d96ec8d6d5fc06c0a4112e40a4d771 /lib/proxy.c | |
parent | 20c9c216b358f97b448282752df171820ff97ab1 (diff) |
http proxy: only check for "HTTP/1.x 200" in the status string
It was checking for "Connection established" and some proxies use a
different string, such as "Tunnel established" in polipo
Diffstat (limited to 'lib/proxy.c')
-rw-r--r-- | lib/proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/proxy.c b/lib/proxy.c index addda16c..2e0dc2cf 100644 --- a/lib/proxy.c +++ b/lib/proxy.c @@ -175,8 +175,8 @@ static int proxy_connect_none(const char *host, unsigned short port_, struct PHB /* Connecting to HTTP proxies */ -#define HTTP_GOODSTRING "HTTP/1.0 200 Connection established" -#define HTTP_GOODSTRING2 "HTTP/1.1 200 Connection established" +#define HTTP_GOODSTRING "HTTP/1.0 200" +#define HTTP_GOODSTRING2 "HTTP/1.1 200" static gboolean http_canread(gpointer data, gint source, b_input_condition cond) { |