Use remove() to remove Soup message header
This commit is contained in:
parent
be61f96bc2
commit
7e1f2655bc
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue