Skip to content

Commit

Permalink
Merge pull request #99 from nativescript-community/ios-empty-response…
Browse files Browse the repository at this point in the history
…-text-fix

fix(ios): Unexpected end of JSON input
  • Loading branch information
farfromrefug authored Sep 11, 2024
2 parents 2437101 + 21e19b3 commit bb830b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/https/request.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class HttpsResponseLegacy implements IHttpsResponseLegacy {
return data;
}
this.stringResponse = data;
this.jsonResponse = parseJSON(data);
this.jsonResponse = data ? parseJSON(data) : null;
return this.jsonResponse as T;
}
toJSONAsync<T>() {
Expand Down

0 comments on commit bb830b4

Please sign in to comment.