You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HeadContentLength of "" in http1 returns a length of -1 but in http2 it returns 0.
The test that found this issue is through CL https://go-review.googlesource.com/17526
* 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]>
HeadContentLength of "" in http1 returns a length of -1 but in http2 it returns 0.
The test that found this issue is through CL https://go-review.googlesource.com/17526
where the test cases
Gives result
The text was updated successfully, but these errors were encountered: