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: don't crash on stream aborts, always add content length #156

Merged
merged 2 commits into from
Jan 4, 2022

Conversation

lizthegrey
Copy link
Member

@lizthegrey lizthegrey commented Jan 4, 2022

Which problem is this PR solving?

@lizthegrey lizthegrey marked this pull request as ready for review January 4, 2022 07:09
@lizthegrey lizthegrey requested review from a team, MikeGoldsmith and robbkidd January 4, 2022 07:09
@lizthegrey lizthegrey changed the title fix crasher, always add content length fix: don't crash on stream aborts, always add content length Jan 4, 2022
@lizthegrey lizthegrey added version: bump patch A PR with release-worthy changes and is backwards-compatible. merge at will Reviewer can merge the PR once reviewed. labels Jan 4, 2022
@lizthegrey
Copy link
Member Author

https://go.dev/play/p/mNGgU5JkY1G -- proof that the old NopCloser and pooledReader implementations weren't being properly detected.

Copy link
Contributor

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @lizthegrey 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge at will Reviewer can merge the PR once reviewed. version: bump patch A PR with release-worthy changes and is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants