diff --git a/src/sys/es/fan/MimeType.js b/src/sys/es/fan/MimeType.js index 9f766764e..cc6592183 100644 --- a/src/sys/es/fan/MimeType.js +++ b/src/sys/es/fan/MimeType.js @@ -89,13 +89,14 @@ class MimeType extends Obj { static #doParseParams(s, offset) { const params = Map.make(Str.type$, Str.type$); params.caseInsensitive(true); + let len = s.length; let inQuotes = false; let keyStart = offset; let valStart = -1; let valEnd = -1; let eq = -1; let hasEsc = false; - for (let i=keyStart; i