GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http2: rename counter in `mapToHeaders` inner loop · nodejs/node@e54eb46

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/http2
    • util.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/http2/util.js‎

Copy file name to clipboardExpand all lines: lib/internal/http2/util.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,13 +442,13 @@ function mapToHeaders(map,
442442
let count = 0;
443443
const keys = ObjectKeys(map);
444444
const singles = new Set();
445-
let i;
445+
let i, j;
446446
let isArray;
447447
let key;
448448
let value;
449449
let isSingleValueHeader;
450450
let err;
451-
for (i = 0; i < keys.length; i++) {
451+
for (i = 0; i < keys.length; ++i) {
452452
key = keys[i];
453453
value = map[key];
454454
if (value === undefined || key === '')
@@ -488,8 +488,8 @@ function mapToHeaders(map,
488488
throw new ERR_HTTP2_INVALID_CONNECTION_HEADERS(key);
489489
}
490490
if (isArray) {
491-
for (var k = 0; k < value.length; k++) {
492-
const val = String(value[k]);
491+
for (j = 0; j < value.length; ++j) {
492+
const val = String(value[j]);
493493
ret += `${key}\0${val}\0`;
494494
}
495495
count += value.length;

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.