summaryrefslogtreecommitdiff
path: root/src/networkaccessmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-19 19:04:12 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-19 19:04:12 +0200
commitc2f9b53602b9791cc16a6ce2b33b71f15a9024cf (patch)
tree632566f5ddcc0bad75d735f5d466299f8af663a4 /src/networkaccessmanager.cpp
parentInserting webview winId metadata in cookiejar (diff)
downloadrekonq-c2f9b53602b9791cc16a6ce2b33b71f15a9024cf.tar.xz
Rude NetworkAccessManager hack to fix POST operations for 0.2 release ;)
I hope we could revert this commit in a while..
Diffstat (limited to 'src/networkaccessmanager.cpp')
-rw-r--r--src/networkaccessmanager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp
index 159a30a2..a06b20aa 100644
--- a/src/networkaccessmanager.cpp
+++ b/src/networkaccessmanager.cpp
@@ -208,3 +208,14 @@ KIO::MetaData& NetworkAccessManager::metaData()
{
return m_metaData;
};
+
+
+QNetworkReply *NetworkAccessManager::createRequest(Operation op, const QNetworkRequest &req, QIODevice *outgoingData)
+{
+ // FIXME: rude hack. Waiting for a real POST behaviour fix ;)
+ if(op == PostOperation)
+ {
+ return QNetworkAccessManager::createRequest(op,req,outgoingData);
+ }
+ return AccessManager::createRequest(op,req,outgoingData);
+}