Skip to content

Commit

Permalink
fix(fetch): set don't append sec-fetch-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Mar 28, 2022
1 parent 48c326f commit 5b9acf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function appendFetchMetadata (httpRequest) {
header = httpRequest.mode

// 4. Set a structured field value `Sec-Fetch-Mode`/header in r’s header list.
httpRequest.headersList.append('sec-fetch-mode', header)
httpRequest.headersList.set('sec-fetch-mode', header)

// https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-site-header
// TODO
Expand Down

0 comments on commit 5b9acf2

Please sign in to comment.