mirror of https://github.com/sundowndev/http.git
lowercase `authorization`
parent
7ad6645d8a
commit
0f1dc174eb
|
@ -30,7 +30,7 @@ class HTTP {
|
|||
|
||||
setToken(token, type) {
|
||||
const value = !token ? null : (type ? type + ' ' : '') + token
|
||||
this.setHeader('Authorization', value)
|
||||
this.setHeader('authorization', value)
|
||||
}
|
||||
|
||||
_hook(name, fn) {
|
||||
|
|
Loading…
Reference in New Issue