Skip to content

Commit

Permalink
Patch undici to workaround nodejs/undici#3959
Browse files Browse the repository at this point in the history
Not spec-compliant, might break a few things, but we will see
  • Loading branch information
SukkaW committed Jan 9, 2025
1 parent 14976b9 commit 0c67964
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,10 @@
"packageManager": "[email protected]",
"resolutions": {
"has": "npm:@nolyfill/has@latest"
},
"pnpm": {
"patchedDependencies": {
"undici": "patches/undici.patch"
}
}
}
13 changes: 13 additions & 0 deletions patches/undici.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lib/util/cache.js b/lib/util/cache.js
index 35c53512b2acea09657b888e42dbfd04e45d7dbe..6ebce36bf7f3c50d6afabe5b3ab0e692605403dd 100644
--- a/lib/util/cache.js
+++ b/lib/util/cache.js
@@ -270,8 +270,6 @@ function parseVaryHeader (varyHeader, headers) {

if (headers[trimmedHeader]) {
output[trimmedHeader] = headers[trimmedHeader]
- } else {
- return undefined
}
}

15 changes: 10 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c67964

Please sign in to comment.