From: Christian Dywan Date: Tue, 28 Aug 2012 17:39:55 +0000 (+0200) Subject: Strip HTTP Host to outsmart some filter proxies X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=915955c0dacfe8f8937dc36983589bcd188e3075;p=midori Strip HTTP Host to outsmart some filter proxies --- diff --git a/midori/main.c b/midori/main.c index e87ab921..4e7a596f 100644 --- a/midori/main.c +++ b/midori/main.c @@ -928,6 +928,10 @@ midori_soup_session_settings_accept_language_cb (SoupSession* session, } g_free (stripped_referer); } + + /* With HTTP, Host is optional. Strip to outsmart some filter proxies */ + if (destination && destination->scheme == SOUP_URI_SCHEME_HTTP) + soup_message_headers_replace (msg->request_headers, "Host", NULL); } }