Skip to content

Commit 2b40e93

Browse files
author
Ali Abdelfattah
authored
Merge pull request #485 from Instabug/fix/network-log-response-type-v9.1.1
[Hotfix] Network Logging - Include XHR Response when responseType is `""`
2 parents 8df50da + 436511b commit 2b40e93

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## master
2+
3+
* Fixes an issue that caused XHR Response not to be logged.
4+
15
## v9.1.1 (2020-04-06)
26

37
* Fixes an issue with the version name while uploading the sourcemap on Android.

utils/XhrNetworkInterceptor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const XHRInterceptor = {
8888
if (this.responseType === 'blob') {
8989
var responseText = await (new Response(this.response)).text();
9090
cloneNetwork.responseBody = responseText;
91-
} else if (this.responseType === 'text') {
91+
} else if (this.responseType === 'text' || this.responseType === '') {
9292
cloneNetwork.responseBody = this.response;
9393
}
9494
}

0 commit comments

Comments
 (0)