Back out D2098670: Allow uploading a native file (e.g. photo) via XMLHttpRequest

This commit is contained in:
Philipp von Weitershausen
2015-05-26 13:29:41 -07:00
parent cfa4b13472
commit 3269af227f
5 changed files with 10 additions and 55 deletions

View File

@@ -20,16 +20,13 @@ var XMLHttpRequestBase = require('XMLHttpRequestBase');
class XMLHttpRequest extends XMLHttpRequestBase {
sendImpl(method: ?string, url: ?string, headers: Object, data: any): void {
if (typeof data === 'string') {
data = {string: data};
}
RCTDataManager.queryData(
'http',
{
method,
url,
data,
headers,
method: method,
url: url,
data: data,
headers: headers,
},
// TODO: Do we need this? is it used anywhere?
'h' + crc32(method + '|' + url + '|' + data),