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

fixbug:superfluous response.WriteHeader #3083

Merged
merged 1 commit into from
Mar 31, 2023
Merged

Conversation

heyehang
Copy link
Contributor

In special cases where the method (http.Write) is needed for business logic, within the interceptor TimeoutHandler, WriteHeader code:200 is automatically written inside the overwritten method (timeriter.write), Then the case <-done of timeoutHandler.ServeHTTP continues to call the method (WriteHeader, Write), resulting in an error "http: superfluous response.WriteHeader call from ..."

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@kevwan kevwan added this pull request to the merge queue Mar 31, 2023
Merged via the queue into zeromicro:master with commit e06abf4 Mar 31, 2023
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.

None yet

2 participants