react-native/Libraries
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
..
ART Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ActionSheetIOS Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Alert Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Animated Optimize gitignores 2018-09-15 09:01:59 -07:00
AppState Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
BatchedBridge Change new Date() to Date.now() to save on date allocations 2018-09-21 11:11:33 -07:00
Blob Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
BugReporting Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
CameraRoll Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Color Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Components Prettify remaining unprettified files (#21327) 2018-09-25 19:50:08 -07:00
Core Add js engine information in React Native error reporting 2018-09-12 14:01:50 -07:00
EventEmitter Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Experimental Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Geolocation Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Image Prettify remaining unprettified files (#21327) 2018-09-25 19:50:08 -07:00
Inspector Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Interaction Remove some automocks from tests 2018-09-18 04:18:11 -07:00
JSInspector Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
LayoutAnimation Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Linking Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
LinkingIOS Update RCTLinkingManager.h to explicitly state the 'nullability' of parameters (#20798) 2018-09-21 06:18:39 -07:00
Lists Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Modal Remove PropTypes from Modal.js (#21279) 2018-09-24 15:20:58 -07:00
NativeAnimation Support the `Slow Animations` option of the iOS simulator (#21157) 2018-09-20 16:18:03 -07:00
Network Fix HEAD request failing with `Invalid response for blob` (#19567) 2018-09-26 13:50:17 -07:00
Performance Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
PermissionsAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
PushNotificationIOS Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTTest SnapshotViewIOS: Remove PropTypes (#21294) 2018-09-24 11:02:21 -07:00
ReactNative Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Renderer Create Renderer README (#21251) 2018-09-21 13:19:35 -07:00
Sample Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Settings Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Share Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Storage Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
StyleSheet RN: Ignore StyleSheetValidation if Profiling 2018-09-19 16:27:23 -07:00
SurfaceBackedComponent Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
SurfaceHostingComponent Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Text Fix InputAccessoryView safe area when not attached to a TextInput (#21179) 2018-09-18 18:31:51 -07:00
Types Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Utilities Fix dev-only redbox in polyfillfunctions 2018-09-12 16:32:50 -07:00
Vibration Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
WebSocket Remove some automocks from tests 2018-09-18 04:18:11 -07:00
Wrapper Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
YellowBox YellowBox: Allow Retrying Symbolication 2018-09-11 20:47:03 -07:00
fishhook Merge fishhook.xcodeproj in RCTWebSocket 2017-08-09 07:48:09 -07:00
polyfills Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
react-native Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
vendor Fix map polyfill to use a deterministic key for the hash 2018-09-17 15:02:24 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
Promise.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
UTFSequence.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
promiseRejectionIsError.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00