[Xfce4-commits] <midori:master> Strip HTTP Host to outsmart some filter proxies
Christian Dywan
noreply at xfce.org
Wed Aug 29 01:10:02 CEST 2012
Updating branch refs/heads/master
to 915955c0dacfe8f8937dc36983589bcd188e3075 (commit)
from 3fb42ef2d7aec6dd93721aae5166593052881350 (commit)
commit 915955c0dacfe8f8937dc36983589bcd188e3075
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Aug 28 19:39:55 2012 +0200
Strip HTTP Host to outsmart some filter proxies
midori/main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/midori/main.c b/midori/main.c
index e87ab92..4e7a596 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -928,6 +928,10 @@ midori_soup_session_settings_accept_language_cb (SoupSession* session,
}
g_free (stripped_referer);
}
+
+ /* 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);
}
}
More information about the Xfce4-commits
mailing list