Changeset 840394e for lib


Ignore:
Timestamp:
2015-01-16T19:50:24Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
4cff28f
Parents:
20c9c21
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/proxy.c

    r20c9c21 r840394e  
    176176/* Connecting to HTTP proxies */
    177177
    178 #define HTTP_GOODSTRING "HTTP/1.0 200 Connection established"
    179 #define HTTP_GOODSTRING2 "HTTP/1.1 200 Connection established"
     178#define HTTP_GOODSTRING "HTTP/1.0 200"
     179#define HTTP_GOODSTRING2 "HTTP/1.1 200"
    180180
    181181static gboolean http_canread(gpointer data, gint source, b_input_condition cond)
Note: See TracChangeset for help on using the changeset viewer.