-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http2: fix two cases of Server behavior not matching HTTP/1
* don't send automatic Content-Length from Server on HEAD requests if response size is 0 (it's possible the handler didn't write because they looked at the method) * don't send Content-Type if handler explicitly set it to nothing. Matches the behavior of HTTP/1. Updates golang/go#13532 Updates golang/go#13495 Change-Id: If6e0898095cf88cb14efb6bbe82c88dbc2077e6b Reviewed-on: https://go-review.googlesource.com/17590 Reviewed-by: Blake Mizerany <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
2 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