We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5c2be commit 9d972e8Copy full SHA for 9d972e8
index.js
@@ -28,7 +28,6 @@ var jsonObject = {
28
// Modify the url or config here
29
jsonObject.url = url;
30
if(!config || !config.method) {
31
- //TO-DO: set method to GET!
32
jsonObject.method = 'GET';
33
}
34
if(config) {
@@ -51,7 +50,7 @@ var jsonObject = {
51
50
response: function (response) {
52
// Modify the reponse object;
53
jsonObject.responseCode = response.status;
54
- jsonObject.responseBody = response._bodyText;
+ jsonObject.responseBody = response._bodyText ? response._bodyText : '';
55
if (Platform.OS === 'android') {
56
Instabug.networkLog(JSON.stringify(jsonObject));
57
0 commit comments