Commit 2da2f6da authored by bdash's avatar bdash

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):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6b59cee5
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.
......@@ -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
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment