Closed cccmien closed 6 years ago
For instance when doing a DELETE request and the server returns HTTP 204 No Content without content-type header, the code would break when checking the content type for 'json'. This fix checks if content-type header was present or not.
Yeah, you're right. There could even be check for 204 response status code. But your change is a good start. Thanks for contribution!
Released as 0.5.1
For instance when doing a DELETE request and the server returns HTTP 204 No Content without content-type header, the code would break when checking the content type for 'json'. This fix checks if content-type header was present or not.