Skip to content

GH_DEBUG: fix api logging corrupting response bodies - #6976

Merged
mislav merged 1 commit into
trunkfrom
httpretty-body-fix
Feb 7, 2023
Merged

mislav merged 1 commit into
trunkfrom
httpretty-body-fix

Conversation

@mislav

@mislav mislav commented Feb 6, 2023 •

Copy link
Copy Markdown
Contributor

With GH_DEBUG=api and response bodies that are greater than a certain size, the httpretty logging library would corrupt the resp.Body reader in its HTTP Transport.

This temporarily switches to my fork since the fix has not yet shipped upstream:
mislav/httpretty@v0.0.6...body-unknown-length-preserve

Ref. henvic/httpretty#17

With `GH_DEBUG=api` and response bodies that are greater than a certain size, the httpretty logging library would corrupt the `resp.Body` reader in its HTTP Transport.
@mislav
mislav requested a review from a team as a code owner February 6, 2023 16:06
@mislav
mislav requested review from vilmibm and removed request for a team February 6, 2023 16:06
@mislav
mislav merged commit d1e54ec into trunk Feb 7, 2023
@mislav
mislav deleted the httpretty-body-fix branch February 7, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants