-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove node-http-proxy and instead install package from npm an…
…d patch it [run ci]
- Loading branch information
1 parent
cf88556
commit 61c78c5
Showing
4 changed files
with
70 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Bump this version to force CI to re-create the cache from scratch. | ||
|
||
04-22-24 | ||
05-09-24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
diff --git a/node_modules/http-proxy/.auto-changelog b/node_modules/http-proxy/.auto-changelog | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/.gitattributes b/node_modules/http-proxy/.gitattributes | ||
deleted file mode 100644 | ||
index 1a6bd45..0000000 | ||
--- a/node_modules/http-proxy/.gitattributes | ||
+++ /dev/null | ||
@@ -1 +0,0 @@ | ||
-package-lock.json binary | ||
diff --git a/node_modules/http-proxy/CHANGELOG.md b/node_modules/http-proxy/CHANGELOG.md | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/CODE_OF_CONDUCT.md b/node_modules/http-proxy/CODE_OF_CONDUCT.md | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/LICENSE b/node_modules/http-proxy/LICENSE | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/README.md b/node_modules/http-proxy/README.md | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/codecov.yml b/node_modules/http-proxy/codecov.yml | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/index.js b/node_modules/http-proxy/index.js | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/lib/http-proxy.js b/node_modules/http-proxy/lib/http-proxy.js | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/lib/http-proxy/common.js b/node_modules/http-proxy/lib/http-proxy/common.js | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/lib/http-proxy/index.js b/node_modules/http-proxy/lib/http-proxy/index.js | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js b/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js b/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js | ||
old mode 100644 | ||
new mode 100755 | ||
diff --git a/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js b/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js | ||
old mode 100644 | ||
new mode 100755 | ||
index 270f23f..b7bc5b4 | ||
--- a/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js | ||
+++ b/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js | ||
@@ -111,7 +111,7 @@ module.exports = { | ||
proxyReq.on('error', onOutgoingError); | ||
proxyReq.on('response', function (res) { | ||
// if upgrade event isn't going to happen, close the socket | ||
- if (!res.upgrade) { | ||
+ if (!res.upgrade && socket.readyState === socket.OPEN && !socket.destroyed) { | ||
socket.write(createHttpHeader('HTTP/' + res.httpVersion + ' ' + res.statusCode + ' ' + res.statusMessage, res.headers)); | ||
res.pipe(socket); | ||
} | ||
diff --git a/node_modules/http-proxy/renovate.json b/node_modules/http-proxy/renovate.json | ||
old mode 100644 | ||
new mode 100755 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters