]> spindle.queued.net Git - midori/commitdiff
Don't mention stripped referrers without MIDORI_DEBUG
authorChristian Dywan <christian@twotoasts.de>
Sun, 17 Apr 2011 20:27:58 +0000 (22:27 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 17 Apr 2011 20:27:58 +0000 (22:27 +0200)
midori/main.c

index 91ca9115a5d35d06cb1b1ce3eec81a37c82cc3eb..e9f27345c9741cbf56137b7fcc93963d01df2347 100644 (file)
@@ -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);