mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Back out D2098670: Allow uploading a native file (e.g. photo) via XMLHttpRequest
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user