Skip to content

Commit

Permalink
fixup! reapply
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamingr committed Feb 16, 2022
1 parent 975be02 commit 67713f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/modules/esm/fetch_module.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const { compose } = require('stream');
* Only for GET requests, other requests would need new Map
* HTTP cache semantics keep diff caches
*
* It caches either the promise or the cahce entry since import.meta.url needs
* It caches either the promise or the cache entry since import.meta.url needs
* the value synchronously for the response location after all redirects.
*
* Maps HREF to pending cache entry
Expand Down Expand Up @@ -105,7 +105,7 @@ function fetchWithRedirects(parsed) {
headers: { Accept: '*/*' },
});
// Note that `once` is used here to handle `error` and that it hits the
// finally on network error/timeout.
// `finally` on network error/timeout.
const { 0: res } = await once(req, 'response');
try {
const isRedirect = res.statusCode >= 300 && res.statusCode <= 303;
Expand Down

0 comments on commit 67713f1

Please sign in to comment.