Bug 1842468 - Remove dom.xhr.standard_content_type_normalization pref r=dom-core,edgar
Differential Revision: https://phabricator.services.mozilla.com/D183798
This commit is contained in:
@@ -2943,8 +2943,7 @@ void XMLHttpRequestMainThread::SendInternal(const BodyExtractorBase* aBody,
|
||||
mAuthorRequestHeaders.Get("content-type", uploadContentType);
|
||||
if (uploadContentType.IsVoid()) {
|
||||
uploadContentType = defaultContentType;
|
||||
} else if (aBodyIsDocumentOrString &&
|
||||
StaticPrefs::dom_xhr_standard_content_type_normalization()) {
|
||||
} else if (aBodyIsDocumentOrString) {
|
||||
UniquePtr<CMimeType> contentTypeRecord =
|
||||
CMimeType::Parse(uploadContentType);
|
||||
nsAutoCString charset;
|
||||
|
||||
Reference in New Issue
Block a user