Make the loader pass cookies through
authorstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2007 04:47:43 +0000 (04:47 +0000)
committerstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2007 04:47:43 +0000 (04:47 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21508 268f45cc-cd09-0410-ab3c-d52691b4dbfc

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

index df4fec4f0211817767cc1a782df5f72920db6961..e83ce1567d7aacd808197d4ae5f2b623e7d5578d 100644 (file)
@@ -1,3 +1,12 @@
+2007-05-15  George Staikos  <staikos@kde.org>
+
+        Reviewed by Adam Roben.
+
+        - Pass cookies through from the loader.
+
+        * platform/graphics/qt/GraphicsContextQt.cpp:
+        (WebCore::GraphicsContext::strokeArc):
+
 2007-05-15  Adam Treat  <adam@staikos.net>
 
         Reviewed by George Staikos.
index 31f2086129b76c2692ba52219b7031c6877cede0..76d9d04c35a4ff99d758cfe0ba98d6d03529c957 100644 (file)
@@ -208,6 +208,10 @@ void ResourceHandleManager::receivedResponse(RequestQt* request)
     if (!client)
         return;
 
+    QStringList cookies = request->response.allValues("Set-Cookie");
+    foreach (QString c, cookies) {
+        setCookies(request->url, request->url, c);
+    }
     QString contentType = request->response.value("Content-Type");
     QString encoding;
     int idx = contentType.indexOf(QLatin1Char(';'));