Skip to content

Commit

Permalink
💎 Bump to version 8.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alyezz authored Jul 8, 2019
1 parent 2821a9b commit b226de0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v8.4.4 (2019-07-08)

* Fixes an issue that causes the sdk to crash when a network request has no headers.

## v8.4.3 (2019-07-03)

* Fixes an issue that caused Android release builds to fail when building on a Windows machine.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Instabug for React Native

[![CircleCI](https://circleci.com/gh/Instabug/Instabug-React-Native.svg?style=svg)](https://circleci.com/gh/Instabug/Instabug-React-Native)
[![npm](https://img.shields.io/npm/v/instabug-reactnative.svg)](https://www.npmjs.com/package/instabug-reactnative)
[![npm](https://img.shields.io/npm/dt/instabug-reactnative.svg)](https://www.npmjs.com/package/instabug-reactnative)
[![npm](https://img.shields.io/npm/l/instabug-reactnative.svg)](https://github.com/Instabug/instabug-reactnative/blob/master/LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "instabug-reactnative",
"version": "8.4.3",
"version": "8.4.4",
"description": "React Native plugin for integrating the Instabug SDK",
"main": "index.js",
"types": "index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions utils/XhrNetworkInterceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ const XHRInterceptor = {
var cloneNetwork = JSON.parse(JSON.stringify(network));
cloneNetwork.requestBody = data ? data : '';

if (cloneNetwork.requestHeaders === '') {
cloneNetwork.requestHeaders = {};
}

if (this.addEventListener) {
this.addEventListener(
'readystatechange',
Expand Down

0 comments on commit b226de0

Please sign in to comment.