Skip to content

Commit

Permalink
fix(fetch): typo (nodejs#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Jun 23, 2022
1 parent f9d7877 commit 7a0310e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch/index.js
Expand Up @@ -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.
Expand Down

0 comments on commit 7a0310e

Please sign in to comment.