mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
http: specify Host when CONNECT is used.
This commit is contained in:
parent
42c15e47b4
commit
aed7d4163a
@ -1,3 +1,7 @@
|
|||||||
|
2013-01-30 Pavel Mateja <pavel@netsafe.cz> (tiny change)
|
||||||
|
|
||||||
|
* http.c (gethttp): Specify "Host" for CONNECT method.
|
||||||
|
|
||||||
2013-10-30 Giuseppe Scrivano <gscrivan@redhat.com>
|
2013-10-30 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||||
|
|
||||||
* http.c (skip_short_body): Remove assert which is always true.
|
* http.c (skip_short_body): Remove assert which is always true.
|
||||||
|
@ -2013,10 +2013,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy,
|
|||||||
the regular request below. */
|
the regular request below. */
|
||||||
proxyauth = NULL;
|
proxyauth = NULL;
|
||||||
}
|
}
|
||||||
/* Examples in rfc2817 use the Host header in CONNECT
|
request_set_header (connreq, "Host",
|
||||||
requests. I don't see how that gains anything, given
|
aprintf ("%s:%d", u->host, u->port),
|
||||||
that the contents of Host would be exactly the same as
|
rel_value);
|
||||||
the contents of CONNECT. */
|
|
||||||
|
|
||||||
write_error = request_send (connreq, sock, 0);
|
write_error = request_send (connreq, sock, 0);
|
||||||
request_free (connreq);
|
request_free (connreq);
|
||||||
|
Loading…
Reference in New Issue
Block a user