diff --git a/lib/web/fetch/data-url.js b/lib/web/fetch/data-url.js index c77747fc0d7..bc7a692a05a 100644 --- a/lib/web/fetch/data-url.js +++ b/lib/web/fetch/data-url.js @@ -283,7 +283,7 @@ function parseMIMEType (input) { // 5. If position is past the end of input, then return // failure - if (position.position > input.length) { + if (position.position >= input.length) { return 'failure' } @@ -364,7 +364,7 @@ function parseMIMEType (input) { } // 6. If position is past the end of input, then break. - if (position.position > input.length) { + if (position.position >= input.length) { break }