Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: keep raw header name #3183

Merged
merged 8 commits into from
May 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
  • Loading branch information
tsctx authored Apr 30, 2024
commit cc0868325e50776dba475bbe5bbe4b38ba7471f1
2 changes: 1 addition & 1 deletion lib/web/fetch/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ class Request {
// 4. If headers is a Headers object, then for each header in its header
// list, append header’s name/header’s value to this’s headers.
if (headers instanceof HeadersList) {
const rawList = headersList.entriesRawList
const rawList = headers.entriesRawList
// TODO: optimizing this.
tsctx marked this conversation as resolved.
Show resolved Hide resolved
for (let i = 0; i < rawList.length; ++i) {
const { 0: key, 1: value } = rawList[i]
Expand Down
Loading