WebCore:
[WebKit-https.git] / WebCore / platform / network / cf / ResourceHandleCFNet.cpp
index dd66cb6..c352643 100644 (file)
@@ -62,6 +62,11 @@ CFURLRequestRef willSendRequest(CFURLConnectionRef conn, CFURLRequestRef cfReque
 {
     ResourceHandle* handle = (ResourceHandle*)clientInfo;
 
+    if (!cfRedirectResponse) {
+        CFRetain(cfRequest);
+        return cfRequest;
+    }
+
     LOG(Network, "CFNet - willSendRequest(conn=%p, handle=%p) (%s)", conn, handle, handle->request().url().string().utf8().data());
 
     ResourceRequest request(cfRequest);