From f94b8cdca509895b96889c0278ab42b64dadb6bc Mon Sep 17 00:00:00 2001 From: Khafra <42794878+KhafraDev@users.noreply.github.com> Date: Thu, 17 Nov 2022 14:43:44 -0500 Subject: [PATCH] fix(fetch): match spec text --- lib/fetch/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fetch/request.js b/lib/fetch/request.js index 29e901256f6..533ee91bc10 100644 --- a/lib/fetch/request.js +++ b/lib/fetch/request.js @@ -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) } }