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: nodejs#53468
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
  • Loading branch information
nodejs-github-bot authored and pull[bot] committed Aug 24, 2024
1 parent 02eb111 commit 721dc7d
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 @@ -260,10 +260,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 721dc7d

Please sign in to comment.