Fix redirects with the Qt resource implementation.
authorstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Jan 2007 06:28:40 +0000 (06:28 +0000)
committerstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Jan 2007 06:28:40 +0000 (06:28 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19210 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/network/qt/ResourceHandleManagerQt.cpp

index 8abcba109a8e797a5362744bf436f804338bd096..c84307199f2f336ab271686cbe192463e7117824 100644 (file)
@@ -1,3 +1,12 @@
+2007-01-28  George Staikos  <staikos@kde.org>
+
+        Reviewed by Maciej.
+
+        Don't send data during a redirect -> causes assert failure.
+
+        * platform/network/qt/ResourceHandleManagerQt.cpp:
+        (WebCore::ResourceHandleManager::receivedData):
+
 2007-01-29  Mark Rowe  <mrowe@apple.com>
 
         Reviewed by Brady.
index bbd8b04f0422299e4ed43d992ffb05c82751bc95..8f45dd5a7f16ccd65adcccbf1686e75edfef95bb 100644 (file)
@@ -262,7 +262,7 @@ void ResourceHandleManager::receivedResponse(RequestQt* request)
 
 void ResourceHandleManager::receivedData(RequestQt* request, const QByteArray& data)
 {
-    if (request->cancelled)
+    if (request->cancelled || request->redirected)
         return;
     Q_ASSERT(pendingRequests.value(request->resource) == request);