From 7e1f2655bc0fbb2cb8b0e82b1862f90c69b5b98f Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 1 Sep 2012 18:25:44 +0200 Subject: [PATCH] Use remove() to remove Soup message header --- midori/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/main.c b/midori/main.c index f9d87e04..3af3660d 100644 --- a/midori/main.c +++ b/midori/main.c @@ -935,7 +935,7 @@ midori_soup_session_settings_accept_language_cb (SoupSession* session, /* 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); + soup_message_headers_remove (msg->request_headers, "Host"); } }