Skip to content

Commit

Permalink
lib: fix prefixed headers order
Browse files Browse the repository at this point in the history
Keep prefixed headers order same as sent order

Fixes: nodejs#38797
  • Loading branch information
ofir committed Jan 28, 2022
1 parent 64c4b55 commit cce4dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/http2/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ function mapToHeaders(map,
err = assertValuePseudoHeader(key);
if (err !== undefined)
throw err;
ret = `${key}\0${value}\0${flags}${ret}`;
ret += `${key}\0${value}\0${flags}`;
count++;
continue;
}
Expand Down

0 comments on commit cce4dce

Please sign in to comment.