Skip to content

Commit 74c6289

Browse files
author
Ali Abdelfattah
authored
Update XhrNetworkInterceptor.js
Include XHR Response when responseType is `""` Fixes an issue where XHR Response is not logged
1 parent 8df50da commit 74c6289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)