Responses with no body cause uncaught exception
bhufmann opened this issue · 1 comments
bhufmann commented
If a server returns a request with no body, the call to response.json() will cause an uncaught exception: "Uncaught SyntaxError: Unexpected end of JSON input".
The line const json = await response.json() as T;
in method performRequest()
of rest-client.ts causes the exception.
PatrickTasse commented
Fixed with #15