Skip to content
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

Fix lost response body data. Fixes #1166 #1170

Merged
merged 1 commit into from
Apr 20, 2024
Merged

Fix lost response body data. Fixes #1166 #1170

merged 1 commit into from
Apr 20, 2024

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Apr 20, 2024

This creates one extra copy of the bytes instead of the view, but the result of readuntil is always being materialized as a String anyway, which was making a copy of the bytes before anyway (i.e. the behavior that changed was String(::View) copied the view bytes then made the string, and now we're explicitly making the copy and then the string is made).

@quinnj quinnj merged commit 7074172 into master Apr 20, 2024
11 checks passed
@quinnj quinnj deleted the jq-1166 branch April 20, 2024 05:37
@KristofferC
Copy link
Contributor

Would be good with a new release with this fix since quite a few packages error on PkgEval with issues that are likely originating from this.

@fredrikekre
Copy link
Member

@quinnj
Copy link
Member Author

quinnj commented Apr 22, 2024

Thanks @fredrikekre

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