-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
httprouter: unexport HTTPContext.Writer
Since it's too easy to use it directly instead of the Send method, which can then cause not closing the send message and not returning from the ServeHTTP handler goroutine at all. This caused a nasty goroutine leak and hang bug in another repo. While here, skip closing the request body, as net/http.Server does this.
- Loading branch information
Showing
2 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters