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
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem. Thanks.
What steps will reproduce the problem?
1./src/pkg/http/response.go#L361
2.func (r *Response) GetHeader(key string) (value string)
3.
What is the expected output? What do you see instead?
According to the comments "GetHeader returns the value of the response
header with the given key, and true." the GetHeader() should return two
values. But here it returns one.
What is your $GOOS? $GOARCH?
$GOOS=linux
$GOARCH=amd64
Which revision are you using? (hg identify)
release.2010-02-23
Please provide any additional information below.
// GetHeader returns the value of the response header with the given
// key, and true. If there were multiple headers with this key, their
// values are concatenated, with a comma delimiter. If there were no
// response headers with the given key, it returns the empty string and
// false. Keys are not case sensitive.
func (r *Response) GetHeader(key string) (value string) {
value, _ = r.Header[CanonicalHeaderKey(key)]
return
}
The text was updated successfully, but these errors were encountered:
by Heresy.Mc:
The text was updated successfully, but these errors were encountered: