fixed method error

master
宇天 2022-04-25 23:53:24 +08:00
parent 325239bddc
commit 1c6d74975d
1 changed files with 1 additions and 1 deletions

View File

@ -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]