We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58cd76c commit 6054e21Copy full SHA for 6054e21
lib/internal/http2/util.js
@@ -542,7 +542,7 @@ const assertWithinRange = hideStackFrames(
542
543
function toHeaderObject(headers) {
544
const obj = ObjectCreate(null);
545
- for (var n = 0; n < headers.length; n = n + 2) {
+ for (var n = 0; n < headers.length; n += 2) {
546
const name = headers[n];
547
let value = headers[n + 1];
548
if (name === HTTP2_HEADER_STATUS)
lib/internal/policy/sri.js
@@ -58,7 +58,7 @@ const parse = (str) => {
58
options: match[4] === undefined ? null : match[4],
59
})
60
});
61
- prevIndex = prevIndex + match[0].length;
+ prevIndex += match[0].length;
62
}
63
64
if (prevIndex !== str.length) {
0 commit comments