From 1c6d74975d8e96634e432e75f4f0776e6193ca95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Mon, 25 Apr 2022 23:53:24 +0800 Subject: [PATCH] fixed method error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6ddb447..666f08f 100644 --- a/index.js +++ b/index.js @@ -126,7 +126,7 @@ function __init__() { if (conf.headers) { for (let k in conf.headers) { let _k = k.toLowerCase() - if (['accept-ranges', 'content-type', 'content-length'].contains(_k)) { + if (['accept-ranges', 'content-type', 'content-length'].includes(_k)) { continue } COMMON_HEADERS[_k] = conf.headers[k]