]> spindle.queued.net Git - midori/commitdiff
Use remove() to remove Soup message header
authorChristian Dywan <christian@twotoasts.de>
Sat, 1 Sep 2012 16:25:44 +0000 (18:25 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 1 Sep 2012 16:25:44 +0000 (18:25 +0200)
midori/main.c

index f9d87e04fcd6b7dafd74576a9a5a9c226ed38c8a..3af3660dfdb2df89c710963b761db19ae7bdb0f2 100644 (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 */
         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");
     }
 }