Skip to content

Don't write headers twice #6054

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

Closed
wants to merge 2 commits into from
Closed

Don't write headers twice #6054

wants to merge 2 commits into from

Conversation

dmathieu
Copy link
Member

The change in #5916 introduced a regression, as we check for wroteHeader, but then always write anyway.
We need to only write if the header wasn't written yet.

Fixes #6053.

@dmathieu
Copy link
Member Author

Closing, as this breaks #3580

@dmathieu dmathieu closed this Aug 27, 2024
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.

Error logs coming for http: superfluous response.WriteHeader call when using otelhttp handler
1 participant