XMLHttpRequest: ignore case for request headers

Summary:
HTTP headers are case-insensitive, so we should treat them that way when they're being set on `XMLHttpRequest`.
Closes https://github.com/facebook/react-native/pull/1381
Github Author: Philipp von Weitershausen <philikon@fb.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
Philipp von Weitershausen 2015-05-26 08:12:59 -07:00
parent b7c669aa73
commit 7069e4cd3f
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class XMLHttpRequestBase {
}
setRequestHeader(header: string, value: any): void {
this._headers[header] = value;
this._headers[header.toLowerCase()] = value;
}
open(method: string, url: string, async: ?boolean): void {