net/http/httptest: ResponseRecorder.WriteHeader documentation makes a claim that seems untrue #32144
Labels
Documentation
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
The documentation of the
httptest.ResponseRecorder.WriteHeader
method says:The sentence in bold was added in CL 20047.
Either I don't understand it correctly, or it's not true:
https://play.golang.org/p/KTLurhi9OGH
Based on my understanding, I expected the second println to print
map[Content-Type:[text/plain; charset=utf-8]]
, notmap[Content-Type:[modified]]
./cc @bradfitz @cmarcelo
The text was updated successfully, but these errors were encountered: