-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAge
Description
I have found a small error in the type ResponseWriter interface
documentation. As part of the server.go
file the following is stated:
// To suppress implicit response headers (such as "Date"), set
// their value to nil.
Header() Header
However, Header
is of type type Header map[string][]string
which means headers can only be overritten using the empty string "". To avoid any confusion, the documentation should hence be changed accordingly:
// To suppress implicit response headers (such as "Date"), set
// their value to "" (empty string).
Header() Header
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAge