From 9311f32a9e4a75c9e5ae22848e5f8ff3603ef399 Mon Sep 17 00:00:00 2001 From: Khafra <42794878+KhafraDev@users.noreply.github.com> Date: Fri, 18 Nov 2022 01:45:58 -0500 Subject: [PATCH] fix(fetch): match spec text (#1777) --- 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) } }