http icon indicating copy to clipboard operation
http copied to clipboard

fix(ios): null in body or result

Open stonewoodman opened this issue 3 years ago • 0 comments

I'm having a problem with iOS if data is null. await Http.request({ 'POST', 'https://...', headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, data: null }); This throws an error. If result is JSON-null, then is thrown an error too. This PR fixes both bugs.

stonewoodman avatar Feb 02 '22 21:02 stonewoodman