summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/http/01_http.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js
index 1a8f8b853..fee30f7f0 100644
--- a/ext/http/01_http.js
+++ b/ext/http/01_http.js
@@ -510,7 +510,8 @@ function buildCaseInsensitiveCommaValueFinder(checkText) {
/** @param value {string} */
function hasWord(value) {
- for (const [cLower, cUpper] of charCodes) {
+ for (let j = 0; j < charCodes.length; ++j) {
+ const { 0: cLower, 1: cUpper } = charCodes[j];
if (cLower === char || cUpper === char) {
char = StringPrototypeCharCodeAt(value, ++i);
} else {