Strip HTTP Host to outsmart some filter proxies

This commit is contained in:
Christian Dywan 2012-08-28 19:39:55 +02:00
parent 3fb42ef2d7
commit 915955c0da
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
}