Commit 79dbd164 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http: simplify CONNECT format string

i_version is always (1.)1 here.
parent 53a31886
...@@ -1006,9 +1006,8 @@ static int Connect( access_t *p_access, uint64_t i_tell ) ...@@ -1006,9 +1006,8 @@ static int Connect( access_t *p_access, uint64_t i_tell )
} }
WriteHeaders( p_access, WriteHeaders( p_access,
"CONNECT %s:%d HTTP/1.%d\r\nHost: %s:%d\r\n\r\n", "CONNECT %s:%d HTTP/1.1\r\nHost: %s:%d\r\n\r\n",
p_sys->url.psz_host, p_sys->url.i_port, p_sys->url.psz_host, p_sys->url.i_port,
p_sys->i_version,
p_sys->url.psz_host, p_sys->url.i_port); p_sys->url.psz_host, p_sys->url.i_port);
psz = net_Gets( p_access, p_sys->fd ); psz = net_Gets( p_access, p_sys->fd );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment