Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go 1.13 net/http not support Header.Values(name) #217

Closed
leason00 opened this issue Sep 24, 2021 · 1 comment
Closed

go 1.13 net/http not support Header.Values(name) #217

leason00 opened this issue Sep 24, 2021 · 1 comment

Comments

@leason00
Copy link

leason00 commented Sep 24, 2021

func (Header) Values ¶
added in go1.14
func (h Header) Values(key string) []string
Values returns all values associated with the given key. It is case insensitive; textproto.CanonicalMIMEHeaderKey is used to canonicalize the provided key. To use non-canonical keys, access the map directly. The returned slice is not a copy.

https://pkg.go.dev/net/http#Header

but in this project:
go 1.13 in go.mod
use 1.14 featur:
func (r response) GetHeaders(name string) []string {
return r.resp.Header.Values(name)
}
This PR:#211 introduces this problem.

@youyuanwu
Copy link
Member

Bumped version to go 1.15 in go.mod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants