Use remove() to remove Soup message header

This commit is contained in:
Christian Dywan 2012-09-01 18:25:44 +02:00
parent be61f96bc2
commit 7e1f2655bc

View file

@ -935,7 +935,7 @@ midori_soup_session_settings_accept_language_cb (SoupSession* session,
/* With HTTP, Host is optional. Strip to outsmart some filter proxies */ /* With HTTP, Host is optional. Strip to outsmart some filter proxies */
if (destination && destination->scheme == SOUP_URI_SCHEME_HTTP) if (destination && destination->scheme == SOUP_URI_SCHEME_HTTP)
soup_message_headers_replace (msg->request_headers, "Host", NULL); soup_message_headers_remove (msg->request_headers, "Host");
} }
} }