net/http: Status shouldn't include StatusCode #38996
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Unfortunate
Milestone
In parsing:
HTTP/1.1 200 OK
StatusCode
is correctly set to200
butStatus
is parsed to200 OK
when it should only beOK
. This leads to inconsistency withhttp.StatusText
which only returnsOK
instead of200 OK
https://github.com/golang/go/blob/master/src/net/http/response.go#L176
https://github.com/golang/go/blob/master/src/net/http/status.go#L85
The text was updated successfully, but these errors were encountered: