File tree 4 files changed +10
-1
lines changed
4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## v8.4.4 (2019-07-08)
2
+
3
+ * Fixes an issue that causes the sdk to crash when a network request has no headers.
4
+
1
5
## v8.4.3 (2019-07-03)
2
6
3
7
* Fixes an issue that caused Android release builds to fail when building on a Windows machine.
Original file line number Diff line number Diff line change 1
1
# Instabug for React Native
2
2
3
+ [ ![ CircleCI] ( https://circleci.com/gh/Instabug/Instabug-React-Native.svg?style=svg )] ( https://circleci.com/gh/Instabug/Instabug-React-Native )
3
4
[ ![ npm] ( https://img.shields.io/npm/v/instabug-reactnative.svg )] ( https://www.npmjs.com/package/instabug-reactnative )
4
5
[ ![ npm] ( https://img.shields.io/npm/dt/instabug-reactnative.svg )] ( https://www.npmjs.com/package/instabug-reactnative )
5
6
[ ![ npm] ( https://img.shields.io/npm/l/instabug-reactnative.svg )] ( https://github.com/Instabug/instabug-reactnative/blob/master/LICENSE )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " instabug-reactnative" ,
3
- "version" : " 8.4.3 " ,
3
+ "version" : " 8.4.4 " ,
4
4
"description" : " React Native plugin for integrating the Instabug SDK" ,
5
5
"main" : " index.js" ,
6
6
"types" : " index.d.ts" ,
Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ const XHRInterceptor = {
52
52
var cloneNetwork = JSON . parse ( JSON . stringify ( network ) ) ;
53
53
cloneNetwork . requestBody = data ? data : '' ;
54
54
55
+ if ( cloneNetwork . requestHeaders === '' ) {
56
+ cloneNetwork . requestHeaders = { } ;
57
+ }
58
+
55
59
if ( this . addEventListener ) {
56
60
this . addEventListener (
57
61
'readystatechange' ,
You can’t perform that action at this time.
0 commit comments