react-native/Libraries/Network
Jesse Ruder 56fef9b622 Allow duplicate keys in FormData
Summary: Right now `FormData` doesn't allow duplicate keys and uses the last value set for a duplicate key. I tested this in Chrome:
```
var formData = new FormData();
formData.append('key', 'value1');
formData.append('key', 'value2');

var request = new XMLHttpRequest();
request.open("POST", serverUrl);
request.send(formData);
```
and the request has both 'value1' and 'value2'.

I removed the duplicate key check in `FormData`. If people want to build appending or disallow duplicate keys, they can build either on top of this.
Closes https://github.com/facebook/react-native/pull/3556

Reviewed By: svcscm

Differential Revision: D2566999

Pulled By: nicklockwood

fb-gh-sync-id: 580e52e69376ebe9693e39a386cc540802b6d94f
2015-10-21 15:18:40 -07:00
..
RCTNetwork.xcodeproj Added RCTDataRequestHandler 2015-10-19 09:07:06 -07:00
FormData.js Allow duplicate keys in FormData 2015-10-21 15:18:40 -07:00
NetInfo.js - Fix response variable from getCurrentReachability 2015-10-11 19:42:24 -07:00
RCTDataRequestHandler.h Added RCTDataRequestHandler 2015-10-19 09:07:06 -07:00
RCTDataRequestHandler.m Added RCTDataRequestHandler 2015-10-19 09:07:06 -07:00
RCTFileRequestHandler.h Added RCTFileRequestHandler 2015-10-13 08:14:28 -07:00
RCTFileRequestHandler.m Added RCTDataRequestHandler 2015-10-19 09:07:06 -07:00
RCTHTTPRequestHandler.h Refactored networking logic out into RCTDownloadTask 2015-07-23 04:00:31 -08:00
RCTHTTPRequestHandler.m Added RCTFileRequestHandler 2015-10-13 08:14:28 -07:00
RCTNetInfo.h Rename RCTReachability to RCTNetInfo 2015-08-14 08:20:01 -08:00
RCTNetInfo.m Rename RCTReachability to RCTNetInfo 2015-08-14 08:20:01 -08:00
RCTNetworkTask.h Added RCTDataRequestHandler 2015-10-19 09:07:06 -07:00
RCTNetworkTask.m Added RCTDataRequestHandler 2015-10-19 09:07:06 -07:00
RCTNetworking.android.js Release React Native for Android 2015-09-14 18:13:39 +01:00
RCTNetworking.h Added RCTDataRequestHandler 2015-10-19 09:07:06 -07:00
RCTNetworking.m Added RCTDataRequestHandler 2015-10-19 09:07:06 -07:00
XMLHttpRequest.android.js Release React Native for Android 2015-09-14 18:13:39 +01:00
XMLHttpRequest.ios.js Fix null values in network requests 2015-08-14 05:16:02 -08:00
XMLHttpRequestBase.js Fix incorrect lowercase response headers set for XHR responses 2015-07-07 15:05:45 -08:00