Another build fix.
authorstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Jul 2007 19:20:04 +0000 (19:20 +0000)
committerstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Jul 2007 19:20:04 +0000 (19:20 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24208 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitQt/Api/qwebnetworkinterface.cpp
WebKitQt/ChangeLog

index 99c265e4c4089984c7166a269aae00a5ac0a6ab1..a96b58f637f5260cd831caa82f8255618e8c4721 100644 (file)
@@ -392,7 +392,8 @@ bool QWebNetworkManager::add(ResourceHandle *handle, QWebNetworkInterface *inter
 
     job->d->request.init(handle->request());
 
-    if (handle->method() != "POST" && handle->method() != "GET") {
+    const QString method = handle->getInternal()->m_request.httpMethod();
+    if (method != "POST" && method != "GET") {
         // don't know what to do! (probably a request error!!)
         // but treat it like a 'GET' request
         qWarning("REQUEST: [%s]\n", qPrintable(job->d->request.httpHeader.toString()));
index bbef1f4ef215b699156558338f0bd4f6fddda734..f7cd066b3f2d30a60242cba529a057c911a797b7 100644 (file)
@@ -1,3 +1,10 @@
+2007-07-12  George Staikos  <staikos@kde.org>
+
+        Qt build fix.
+
+        * Api/qwebnetworkinterface.cpp:
+        (QWebNetworkManager::add):
+
 2007-07-10  Mark Rowe  <mrowe@apple.com>
 
         Qt build fix after r24126.