Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing handling of http reponse errors
This commit fix the error of rising a wrong HTTPParseException when trying to parse the body for non 200 response status code Now we first doublecheck the status codes for the response, then we check if content-type header is json and rise the parse execption if not We also ensure that if status code is not 200 we don't pollute the attributes for the current object.
- Loading branch information
1 parent
555d383
commit 9f8bf90
Showing
2 changed files
with
128 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters