+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.
#include "CookieStorageWin.h"
#include "CredentialStorage.h"
#include "DocLoader.h"
+#include "FormDataStreamCFNet.h"
#include "Frame.h"
#include "FrameLoader.h"
#include "Logging.h"
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();
}