2006-10-03 MorganL <morganl.webkit@yahoo.com>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Oct 2006 01:09:33 +0000 (01:09 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Oct 2006 01:09:33 +0000 (01:09 +0000)
        Reviewed by Darin.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
        HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND

        * platform/win/ResourceLoaderWin.cpp:
        (WebCore::ResourceLoader::onHandleCreated):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16757 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/win/ResourceLoaderWin.cpp

index bb5bb0ebc431b56fce8d8021fb8a010c6acaccc2..51fc392a7b071ca88108e176ae2f87f242fa9e79 100644 (file)
@@ -1,3 +1,13 @@
+2006-10-03  MorganL  <morganl.webkit@yahoo.com>
+
+        Reviewed by Darin.
+
+        Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
+        HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
+
+        * platform/win/ResourceLoaderWin.cpp:
+        (WebCore::ResourceLoader::onHandleCreated):
+
 2006-10-02  Geoffrey Garen  <ggaren@apple.com>
 
         Feared, loathed, reviewed by Darin.
index 1b515b3f5072195fd88b89ebf6637d79c877d3ce..29e3168858425f27b1e476bb59186d4f831b64e9 100644 (file)
@@ -167,11 +167,12 @@ void ResourceLoader::onHandleCreated(LPARAM lParam)
         headers += "Referer: ";
         headers += d->m_postReferrer;
         headers += "\n";
+        const CString& headersLatin1 = headers.latin1();
         String formData = postData().flattenToString();
         INTERNET_BUFFERSA buffers;
         memset(&buffers, 0, sizeof(buffers));
         buffers.dwStructSize = sizeof(INTERNET_BUFFERSA);
-        buffers.lpcszHeader = headers.latin1();
+        buffers.lpcszHeader = headersLatin1;
         buffers.dwHeadersLength = headers.length();
         buffers.dwBufferTotal = formData.length();
         
@@ -181,6 +182,7 @@ void ResourceLoader::onHandleCreated(LPARAM lParam)
         strncpy(d->m_formDataString, formData.latin1(), formData.length());
         d->m_writing = true;
         HttpSendRequestExA(d->m_secondaryHandle, &buffers, 0, 0, (DWORD_PTR)d->m_jobId);
+        // FIXME: add proper error handling
     }
 }