summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2012-01-24 16:59:58 +0100
committerJonathan Bauer2012-01-24 16:59:58 +0100
commitc7852c4f0b472c574c002c1bd723a2019045c94d (patch)
tree752da0f95fcc294a447291dd9a903fb67cb0e1ba
parentadded nd template in config file & minor formatting (diff)
downloadfbgui-c7852c4f0b472c574c002c1bd723a2019045c94d.tar.gz
fbgui-c7852c4f0b472c574c002c1bd723a2019045c94d.tar.xz
fbgui-c7852c4f0b472c574c002c1bd723a2019045c94d.zip
fix for QT 4.8: setting header for POST
-rw-r--r--src/fbgui/fbgui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fbgui/fbgui.cpp b/src/fbgui/fbgui.cpp
index e1676d1..683538b 100644
--- a/src/fbgui/fbgui.cpp
+++ b/src/fbgui/fbgui.cpp
@@ -238,6 +238,7 @@ void fbgui::loadURL() {
// show cursor again since user is about to interact.
//QWSServer::instance()->setCursorVisible(true); //TODO: ?enabled in original
+ req.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
QObject::connect(_webView, SIGNAL(loadFinished(bool)), this, SLOT(loadURLDone(bool)));
_webView->load(req, QNetworkAccessManager::PostOperation, postData);
}