[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdereview/kwebkitpart/src
From:       Dawit Alemayehu <adawit () kde ! org>
Date:       2010-02-09 17:17:02
Message-ID: 1265735822.807812.16985.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1087848 by adawit:

Override the Accept header set by QtWebKit and instead use the default
one in kio_http.


 M  +5 -0      webpage.cpp  


--- trunk/kdereview/kwebkitpart/src/webpage.cpp #1087847:1087848
@@ -207,6 +207,11 @@
     // Tell QtWebKit to treat man:/ protocol as a local resource...
     QWebSecurityOrigin::addLocalScheme(QL1S("man"));
 
+    // Override the 'Accept' header sent by QtWebKit which favors XML over HTML!
+    // Setting the accept meta-data to null will force kio_http to use its own
+    // default settings for this header.
+    setSessionMetaData(QL1S("accept"), QString());
+
     connect(this, SIGNAL(geometryChangeRequested(const QRect &)),
             this, SLOT(slotGeometryChangeRequested(const QRect &)));
     connect(this, SIGNAL(windowCloseRequested()),
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic