Commit 544c8eb8 authored by mjs@apple.com's avatar mjs@apple.com
Browse files

Build fix, not reviewed.

Fix windows build for fix for https://bugs.webkit.org/show_bug.cgi?id=29943

* platform/network/cf/ResourceHandleCFNet.cpp:
(WebCore::willSendRequest):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48956 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 99b1ba2a
2009-09-30 Maciej Stachowiak <mjs@apple.com>
Build fix, not reviewed.
Fix windows build for fix for https://bugs.webkit.org/show_bug.cgi?id=29943
* platform/network/cf/ResourceHandleCFNet.cpp:
(WebCore::willSendRequest):
2009-09-30 Dimitri Glazkov <dglazkov@chromium.org>
 
Reviewed by Darin Fisher.
......@@ -36,6 +36,7 @@
#include "CookieStorageWin.h"
#include "CredentialStorage.h"
#include "DocLoader.h"
#include "FormDataStreamCFNet.h"
#include "Frame.h"
#include "FrameLoader.h"
#include "Logging.h"
......@@ -144,9 +145,9 @@ CFURLRequestRef willSendRequest(CFURLConnectionRef conn, CFURLRequestRef cfReque
if (!equalIgnoringCase(handle->request().httpMethod(), "GET") && body && !body->isEmpty())
WebCore::setHTTPBody(mutableRequest, body);
String originalContentType = m_handle->request.httpContentType();
if (!originalContentType->isEmpty())
CFURLRequestSetHTTPHeaderFieldValue(mutableRequest.get(), CFSTR("Content-Type"), originalContentType);
RetainPtr<CFStringRef> originalContentType(AdoptCF, handle->request.httpContentType().createCFString());
if (!originalContentType.isEmpty())
CFURLRequestSetHTTPHeaderFieldValue(mutableRequest.get(), CFSTR("Content-Type"), originalContentType.get());
request = mutableRequest.get();
}
......
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