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.
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.