[Xfce4-commits] <midori:master> Use remove() to remove Soup message header

Christian Dywan noreply at xfce.org
Sat Sep 1 18:32:01 CEST 2012


Updating branch refs/heads/master
         to 7e1f2655bc0fbb2cb8b0e82b1862f90c69b5b98f (commit)
       from be61f96bc28d6056b2f36a042b8b6cf9c638cbc3 (commit)

commit 7e1f2655bc0fbb2cb8b0e82b1862f90c69b5b98f
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Sep 1 18:25:44 2012 +0200

    Use remove() to remove Soup message header

 midori/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/midori/main.c b/midori/main.c
index f9d87e0..3af3660 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");
     }
 }
 


More information about the Xfce4-commits mailing list