fixed method error
parent
325239bddc
commit
1c6d74975d
2
index.js
2
index.js
|
@ -126,7 +126,7 @@ function __init__() {
|
||||||
if (conf.headers) {
|
if (conf.headers) {
|
||||||
for (let k in conf.headers) {
|
for (let k in conf.headers) {
|
||||||
let _k = k.toLowerCase()
|
let _k = k.toLowerCase()
|
||||||
if (['accept-ranges', 'content-type', 'content-length'].contains(_k)) {
|
if (['accept-ranges', 'content-type', 'content-length'].includes(_k)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
COMMON_HEADERS[_k] = conf.headers[k]
|
COMMON_HEADERS[_k] = conf.headers[k]
|
||||||
|
|
Loading…
Reference in New Issue