2.75 KB, patch
|Details | Diff | Splinter Review|
Currently the content-type of the request sent by nsXMLHttpRequest::Send is hard-coded to be text/xml in nsXMLHttpRequest::GetStreamForWString. The nsXMLHttpRequest::SetRequestHeader method could be used to set the content type if it weren't for the hard-coded value. I have a patch which only sets the content type to text/xml if it hasn't already been set. We are using this patch internally at OEone, but it would be nice to have this in the main Mozilla source.
Created attachment 42094 [details] [diff] [review] Proposed patch to allow the content-type to be set
17 years ago
r=heikki I am not sure what would be the correct case for Content-Type, Content-Length etc. headers; it seems different webservers give different case. Will try to check this in for 0.9.4.
Since I 'm not exactly sure how to test this, I'm marking verified based on the last comments