From 67746fea2f3ccee7b9e7f2d09e693e00a38c6e5a Mon Sep 17 00:00:00 2001 From: Krzysztof Magiera Date: Tue, 18 Aug 2015 08:13:09 -0700 Subject: [PATCH] [ReactNative] Use FbHttp for handling http requests from React Native. --- Libraries/Network/FormData.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Network/FormData.js b/Libraries/Network/FormData.js index 8339e49ba..ea5d8cc29 100644 --- a/Libraries/Network/FormData.js +++ b/Libraries/Network/FormData.js @@ -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}; }); } }