Skip to content

Commit 9d2ac2b

Browse files
mcollinamarco-ippolito
authored andcommitted
lib: update undici to v5.28.3
Signed-off-by: Matteo Collina <[email protected]> PR-URL: nodejs-private/node-private#538 Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent fc2454f commit 9d2ac2b

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

deps/undici/src/lib/fetch/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,9 @@ function httpRedirectFetch (fetchParams, response) {
12031203
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
12041204
request.headersList.delete('authorization')
12051205

1206+
// https://fetch.spec.whatwg.org/#authentication-entries
1207+
request.headersList.delete('proxy-authorization', true)
1208+
12061209
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
12071210
request.headersList.delete('cookie')
12081211
request.headersList.delete('host')

deps/undici/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "undici",
3-
"version": "5.28.2",
3+
"version": "5.28.3",
44
"description": "An HTTP/1.1 client, written from scratch for Node.js",
55
"homepage": "https://undici.nodejs.org",
66
"bugs": {

deps/undici/undici.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10716,6 +10716,7 @@ var require_fetch = __commonJS({
1071610716
}
1071710717
if (!sameOrigin(requestCurrentURL(request), locationURL)) {
1071810718
request.headersList.delete("authorization");
10719+
request.headersList.delete("proxy-authorization", true);
1071910720
request.headersList.delete("cookie");
1072010721
request.headersList.delete("host");
1072110722
}

src/undici_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// Refer to tools/dep_updaters/update-undici.sh
33
#ifndef SRC_UNDICI_VERSION_H_
44
#define SRC_UNDICI_VERSION_H_
5-
#define UNDICI_VERSION "5.28.2"
5+
#define UNDICI_VERSION "5.28.3"
66
#endif // SRC_UNDICI_VERSION_H_

0 commit comments

Comments
 (0)