Skip to content

Commit b226de0

Browse files
authored
💎 Bump to version 8.4.4
1 parent 2821a9b commit b226de0

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
15
## v8.4.3 (2019-07-03)
26

37
* Fixes an issue that caused Android release builds to fail when building on a Windows machine.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Instabug for React Native
22

3+
[![CircleCI](https://circleci.com/gh/Instabug/Instabug-React-Native.svg?style=svg)](https://circleci.com/gh/Instabug/Instabug-React-Native)
34
[![npm](https://img.shields.io/npm/v/instabug-reactnative.svg)](https://www.npmjs.com/package/instabug-reactnative)
45
[![npm](https://img.shields.io/npm/dt/instabug-reactnative.svg)](https://www.npmjs.com/package/instabug-reactnative)
56
[![npm](https://img.shields.io/npm/l/instabug-reactnative.svg)](https://github.com/Instabug/instabug-reactnative/blob/master/LICENSE)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-reactnative",
3-
"version": "8.4.3",
3+
"version": "8.4.4",
44
"description": "React Native plugin for integrating the Instabug SDK",
55
"main": "index.js",
66
"types": "index.d.ts",

utils/XhrNetworkInterceptor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ const XHRInterceptor = {
5252
var cloneNetwork = JSON.parse(JSON.stringify(network));
5353
cloneNetwork.requestBody = data ? data : '';
5454

55+
if (cloneNetwork.requestHeaders === '') {
56+
cloneNetwork.requestHeaders = {};
57+
}
58+
5559
if (this.addEventListener) {
5660
this.addEventListener(
5761
'readystatechange',

0 commit comments

Comments
 (0)