From: Christian Dywan Date: Sun, 17 Apr 2011 20:27:58 +0000 (+0200) Subject: Don't mention stripped referrers without MIDORI_DEBUG X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea264c31f6d6b1d95814c42e9c48ab4817468bab;p=midori Don't mention stripped referrers without MIDORI_DEBUG --- diff --git a/midori/main.c b/midori/main.c index 91ca9115..e9f27345 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1014,7 +1014,8 @@ midori_soup_session_settings_accept_language_cb (SoupSession* session, soup_uri_set_query (stripped_uri, NULL); stripped_referer = soup_uri_to_string (stripped_uri, FALSE); soup_uri_free (stripped_uri); - g_message ("Referer stripped"); + if (g_getenv ("MIDORI_SOUP_DEBUG")) + g_message ("Referer stripped"); soup_message_headers_replace (msg->request_headers, "Referer", stripped_referer); g_free (stripped_referer);