From 7a0310e019c6ad57c24986fc77787dccf0c95cd4 Mon Sep 17 00:00:00 2001 From: Khafra <42794878+KhafraDev@users.noreply.github.com> Date: Wed, 1 Jun 2022 09:45:41 -0400 Subject: [PATCH] fix(fetch): typo (#1474) --- lib/fetch/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fetch/index.js b/lib/fetch/index.js index c1f3391995e..ddf4b03d4cb 100644 --- a/lib/fetch/index.js +++ b/lib/fetch/index.js @@ -1164,7 +1164,7 @@ async function httpRedirectFetch (fetchParams, response) { if ( ([301, 302].includes(actualResponse.status) && request.method === 'POST') || (actualResponse.status === 303 && - !['GET', 'HEADER'].includes(request.method)) + !['GET', 'HEAD'].includes(request.method)) ) { // then: // 1. Set request’s method to `GET` and request’s body to null.