Commit 7a0b2361 authored by andersca's avatar andersca

Reviewed by Maciej.

        <rdar://problem/4869095>
        default content type changed for XMLHttpRequest POSTs changed (breaks Flickrator 0.1 widget)
        
        * xml/xmlhttprequest.cpp:
        (WebCore::XMLHttpRequest::send):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20257 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent eedf75a5
2007-03-16 Anders Carlsson <acarlsson@apple.com>
Reviewed by Maciej.
<rdar://problem/4869095>
default content type changed for XMLHttpRequest POSTs changed (breaks Flickrator 0.1 widget)
* xml/xmlhttprequest.cpp:
(WebCore::XMLHttpRequest::send):
2007-03-16 Brady Eidson <beidson@apple.com>
Rubberstamped by Tim Hatcher
......
......@@ -404,7 +404,10 @@ void XMLHttpRequest::send(const String& body, ExceptionCode& ec)
String contentType = getRequestHeader("Content-Type");
if (contentType.isEmpty()) {
ExceptionCode ec = 0;
setRequestHeader("Content-Type", "application/xml", ec);
if (m_doc->frame() && m_doc->frame()->settings()->usesDashboardBackwardCompatibilityMode())
setRequestHeader("Content-Type", "application/x-form-urlencoded", ec);
else
setRequestHeader("Content-Type", "application/xml", ec);
ASSERT(ec == 0);
}
......
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