Added DefaultClient for compatiblity (it's an alias for fetch)
This commit is contained in:
parent
b9f75dd54f
commit
2086754a95
3
main.go
3
main.go
|
@ -314,6 +314,9 @@ var Fetch = &Client{
|
|||
Timeout: 20 * time.Second,
|
||||
}
|
||||
|
||||
// DefaultClient is an alias for Fetch.
|
||||
var DefaultClient = Fetch
|
||||
|
||||
func CanonicalHeaderKey(key string) string {
|
||||
const allowedCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$%&'*+-.^_`|~"
|
||||
for _, char := range []rune(key) {
|
||||
|
|
Loading…
Reference in New Issue