react-native/Libraries/Network
anthony 7e9c3f77cc Fix HEAD request failing with `Invalid response for blob` (#19567)
Summary:
Fixes #18223

This is a fairly simple solution to what seems to be a recurring issue where certain requests that result in an empty body where JSON is expected throw an error rather than being handled gracefully. Client side error handling is not being hit as this is being thrown at a lower level.
Make a http request that results in an empty blob: ""

[INTERNAL] [BUGFIX] [XMLHttpRequest.js] - Line 262
Pull Request resolved: https://github.com/facebook/react-native/pull/19567

Differential Revision: D8314416

Pulled By: hramos

fbshipit-source-id: a17c49f3620f0abbb936f3a1c2b01aa1b64820fd
2018-09-26 13:50:17 -07:00
..
RCTNetwork.xcodeproj Update Xcode projects (#19574) 2018-06-19 23:48:12 -07:00
__tests__ Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
FormData.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
NetInfo.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTDataRequestHandler.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTDataRequestHandler.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTFileRequestHandler.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTFileRequestHandler.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTHTTPRequestHandler.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTHTTPRequestHandler.mm Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNetInfo.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNetInfo.m fix RCTNetInfo first time connection status (#20820) 2018-09-12 14:01:50 -07:00
RCTNetworkTask.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNetworkTask.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNetworking.android.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNetworking.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNetworking.ios.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNetworking.mm Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
XHRInterceptor.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
XMLHttpRequest.js Fix HEAD request failing with `Invalid response for blob` (#19567) 2018-09-26 13:50:17 -07:00
convertRequestBody.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
fetch.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00