Skip to content

Commit 80cb042

Browse files
nodejs-github-botjuanarbol
authored andcommitted
deps: update undici to 7.24.4
PR-URL: #62271 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent f5b8667 commit 80cb042

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

deps/undici/src/lib/llhttp/wasm_build_env.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
> undici@7.24.3 build:wasm
2+
> undici@7.24.4 build:wasm
33
> node build/wasm.js --docker
44

55
> docker run --rm --platform=linux/x86_64 --user 1001:1001 --mount type=bind,source=/home/runner/work/node/node/deps/undici/src/lib/llhttp,target=/home/node/build/lib/llhttp --mount type=bind,source=/home/runner/work/node/node/deps/undici/src/build,target=/home/node/build/build --mount type=bind,source=/home/runner/work/node/node/deps/undici/src/deps,target=/home/node/build/deps -t ghcr.io/nodejs/wasm-builder@sha256:975f391d907e42a75b8c72eb77c782181e941608687d4d8694c3e9df415a0970 node build/wasm.js

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2132,9 +2132,12 @@ async function httpNetworkFetch (
21322132
/** @type {import('../../..').Agent} */
21332133
const agent = fetchParams.controller.dispatcher
21342134

2135+
const path = url.pathname + url.search
2136+
const hasTrailingQuestionMark = url.search.length === 0 && url.href[url.href.length - url.hash.length - 1] === '?'
2137+
21352138
return new Promise((resolve, reject) => agent.dispatch(
21362139
{
2137-
path: url.href.slice(url.href.indexOf(url.host) + url.host.length, url.hash.length ? -url.hash.length : undefined),
2140+
path: hasTrailingQuestionMark ? `${path}?` : path,
21382141
origin: url.origin,
21392142
method: request.method,
21402143
body: agent.isMockActive ? request.body && (request.body.source || request.body.stream) : body,

deps/undici/src/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "7.24.3",
3+
"version": "7.24.4",
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13611,9 +13611,11 @@ var require_fetch = __commonJS({
1361113611
function dispatch({ body }) {
1361213612
const url = requestCurrentURL(request);
1361313613
const agent = fetchParams.controller.dispatcher;
13614+
const path = url.pathname + url.search;
13615+
const hasTrailingQuestionMark = url.search.length === 0 && url.href[url.href.length - url.hash.length - 1] === "?";
1361413616
return new Promise((resolve, reject) => agent.dispatch(
1361513617
{
13616-
path: url.href.slice(url.href.indexOf(url.host) + url.host.length, url.hash.length ? -url.hash.length : void 0),
13618+
path: hasTrailingQuestionMark ? `${path}?` : path,
1361713619
origin: url.origin,
1361813620
method: request.method,
1361913621
body: agent.isMockActive ? request.body && (request.body.source || request.body.stream) : body,

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 "7.24.3"
5+
#define UNDICI_VERSION "7.24.4"
66
#endif // SRC_UNDICI_VERSION_H_

0 commit comments

Comments
 (0)