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
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
The text was updated successfully, but these errors were encountered:
I have found a small error in the
type ResponseWriter interface
documentation. As part of theserver.go
file the following is stated:However,
Header
is of typetype 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:The text was updated successfully, but these errors were encountered: