mirror of
https://github.com/OpenVPN/openvpn.git
synced 2025-05-09 21:51:05 +08:00
Add HTTP/1.1 Host header
OpenVPN should send a Host: header to comply with the HTTP/1.1 specification. Full discussion of this patch can be found here: <http://thread.gmane.org/gmane.network.openvpn.devel/4039> Signed-off-by: Lars Hupel <hupel@in.tum.de> Acked-by: Peter Stuge <peter@stuge.se> Acked-by: Gert Doering <gert@greenie.muc.de> Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Trac-ticket: 63
This commit is contained in:
parent
59afc4a5f7
commit
58f8d948ac
4
proxy.c
4
proxy.c
@ -552,6 +552,10 @@ establish_http_proxy_passthru (struct http_proxy_info *p,
|
||||
if (!send_line_crlf (sd, buf))
|
||||
goto error;
|
||||
|
||||
openvpn_snprintf(buf, sizeof(buf), "Host: %s", host);
|
||||
if (!send_line_crlf(sd, buf))
|
||||
goto error;
|
||||
|
||||
/* send User-Agent string if provided */
|
||||
if (p->options.user_agent)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user