mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Patch undici to workaround https://github.com/nodejs/undici/issues/3959
Not spec-compliant, might break a few things, but we will see
This commit is contained in:
13
patches/undici.patch
Normal file
13
patches/undici.patch
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user