-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent leak on error responses #454
Prevent leak on error responses #454
Conversation
This reverts commit 0148d77.
5268213
to
8895770
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me all tests pass, but I'm a bit curious why only check for non json content
Ah good question @acloudgopher-pd. I should have left some comments describing my thought process. So all of the requests eventually call Lines 583 to 585 in 8895770
inside of Lines 560 to 566 in 8895770
so it looked like the only place this was missing was for the scenario where a non-JSON response was returned... |
8895770
to
c0ee9f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a better approach to me 👍
Reverts #453 and instead applies the fix in a common location.