From 336bbc370e3910d217e89ddec12bb7abd2206a02 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 19 Nov 2014 22:38:56 +0100 Subject: [PATCH] Ignore 'content-type missing' Qt warning. --- qutebrowser/utils/log.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index f8dc74cbd..73b18c04b 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -264,7 +264,12 @@ def qt_message_handler(msg_type, context, msg): # Not much information about this, but it seems harmless 'QXcbWindow: Unhandled client message: "_GTK_LOAD_ICONTHEMES"', # Sometimes indicates missing text, but most of the time harmless - r'load glyph failed err=\S+ face=\S+, glyph=\S+') + r'load glyph failed err=\S+ face=\S+, glyph=\S+', + # Harmless, see https://bugreports.qt-project.org/browse/QTBUG-42479 + 'content-type missing in HTTP POST, defaulting to ' + 'application/x-www-form-urlencoded. Use QNetworkRequest::setHeader() ' + 'to fix this problem.' + ) if any(re.match(pattern, msg.strip()) for pattern in suppressed_msgs): level = logging.DEBUG else: