Skip to content

Commit 0c67964

Browse files
committed
Patch undici to workaround nodejs/undici#3959
Not spec-compliant, might break a few things, but we will see
1 parent 14976b9 commit 0c67964

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,10 @@
7474
"packageManager": "[email protected]",
7575
"resolutions": {
7676
"has": "npm:@nolyfill/has@latest"
77+
},
78+
"pnpm": {
79+
"patchedDependencies": {
80+
"undici": "patches/undici.patch"
81+
}
7782
}
7883
}

patches/undici.patch

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/lib/util/cache.js b/lib/util/cache.js
2+
index 35c53512b2acea09657b888e42dbfd04e45d7dbe..6ebce36bf7f3c50d6afabe5b3ab0e692605403dd 100644
3+
--- a/lib/util/cache.js
4+
+++ b/lib/util/cache.js
5+
@@ -270,8 +270,6 @@ function parseVaryHeader (varyHeader, headers) {
6+
7+
if (headers[trimmedHeader]) {
8+
output[trimmedHeader] = headers[trimmedHeader]
9+
- } else {
10+
- return undefined
11+
}
12+
}
13+

pnpm-lock.yaml

+10-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)