[ReactNative] Use FbHttp for handling http requests from React Native.

This commit is contained in:
Krzysztof Magiera 2015-08-18 08:13:09 -07:00
parent 76a9baaf2f
commit 67746fea2f
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class FormData {
var contentDisposition = 'form-data; name="' + name + '"';
var headers: Headers = {'content-disposition': contentDisposition};
if (typeof value === 'string') {
return {string: value, headers};
return {string: value, headers, fieldName: name};
}
// The body part is a "blob", which in React Native just means
@ -87,7 +87,7 @@ class FormData {
if (typeof value.type === 'string') {
headers['content-type'] = value.type;
}
return {...value, headers};
return {...value, headers, fieldName: name};
});
}
}