+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>
* http.c (skip_short_body): Remove assert which is always true.
the regular request below. */
proxyauth = NULL;
}
- /* Examples in rfc2817 use the Host header in CONNECT
- requests. I don't see how that gains anything, given
- that the contents of Host would be exactly the same as
- the contents of CONNECT. */
+ request_set_header (connreq, "Host",
+ aprintf ("%s:%d", u->host, u->port),
+ rel_value);
write_error = request_send (connreq, sock, 0);
request_free (connreq);