Skip to content

Commit

Permalink
fix(fetch): match spec text (#1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Nov 18, 2022
1 parent c4803cf commit 9311f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch/request.js
Expand Up @@ -433,7 +433,7 @@ class Request {
// 3, If Content-Type is non-null and this’s headers’s header list does
// not contain `Content-Type`, then append `Content-Type`/Content-Type to
// this’s headers.
if (contentType && !this[kHeaders].has('content-type')) {
if (contentType && !this[kHeaders][kHeadersList].contains('content-type')) {
this[kHeaders].append('content-type', contentType)
}
}
Expand Down

0 comments on commit 9311f32

Please sign in to comment.