From 840394e847eb4f72443facf8b923741698c3e9a6 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 16 Jan 2015 16:50:24 -0300 Subject: 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 --- lib/proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/proxy.c') 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) { -- cgit v1.2.3