Skip to content

Commit

Permalink
deps: update undici to 6.19.1
Browse files Browse the repository at this point in the history
PR-URL: #53468
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: Matthew Aitken <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
  • Loading branch information
nodejs-github-bot authored and marco-ippolito committed Jul 19, 2024
1 parent 6bb6a91 commit 171dc50
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
11 changes: 7 additions & 4 deletions deps/undici/src/lib/web/fetch/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,13 @@ function appendRequestOriginHeader (request) {
// TODO: implement "byte-serializing a request origin"
let serializedOrigin = request.origin

// "'client' is changed to an origin during fetching."
// This doesn't happen in undici (in most cases) because undici, by default,
// has no concept of origin.
if (serializedOrigin === 'client') {
// - "'client' is changed to an origin during fetching."
// This doesn't happen in undici (in most cases) because undici, by default,
// has no concept of origin.
// - request.origin can also be set to request.client.origin (client being
// an environment settings object), which is undefined without using
// setGlobalOrigin.
if (serializedOrigin === 'client' || serializedOrigin === undefined) {
return
}

Expand Down
28 changes: 14 additions & 14 deletions deps/undici/src/package-lock.json

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

2 changes: 1 addition & 1 deletion deps/undici/src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "undici",
"version": "6.19.0",
"version": "6.19.1",
"description": "An HTTP/1.1 client, written from scratch for Node.js",
"homepage": "https://undici.nodejs.org",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion deps/undici/undici.js
Original file line number Diff line number Diff line change
Expand Up @@ -3917,7 +3917,7 @@ var require_util2 = __commonJS({
__name(appendFetchMetadata, "appendFetchMetadata");
function appendRequestOriginHeader(request) {
let serializedOrigin = request.origin;
if (serializedOrigin === "client") {
if (serializedOrigin === "client" || serializedOrigin === void 0) {
return;
}
if (request.responseTainting === "cors" || request.mode === "websocket") {
Expand Down
2 changes: 1 addition & 1 deletion src/undici_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// Refer to tools/dep_updaters/update-undici.sh
#ifndef SRC_UNDICI_VERSION_H_
#define SRC_UNDICI_VERSION_H_
#define UNDICI_VERSION "6.19.0"
#define UNDICI_VERSION "6.19.1"
#endif // SRC_UNDICI_VERSION_H_

0 comments on commit 171dc50

Please sign in to comment.