Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 96e7fde

Browse files
committed
Bump undici to 5.22.1
1 parent 950e256 commit 96e7fde

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

package-lock.json

+9-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/miniflare/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@
3535
"glob-to-regexp": "^0.4.1",
3636
"http-cache-semantics": "^4.1.0",
3737
"kleur": "^4.1.5",
38-
"set-cookie-parser": "^2.6.0",
3938
"source-map-support": "0.5.21",
4039
"stoppable": "^1.1.0",
41-
"undici": "^5.13.0",
40+
"undici": "^5.22.1",
4241
"workerd": "1.20230724.0",
4342
"ws": "^8.11.0",
4443
"youch": "^3.2.2",

packages/miniflare/src/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import type {
1414
RequestInitCfProperties,
1515
} from "@cloudflare/workers-types/experimental";
1616
import exitHook from "exit-hook";
17-
import { splitCookiesString } from "set-cookie-parser";
1817
import stoppable from "stoppable";
1918
import { Client } from "undici";
2019
import { WebSocketServer } from "ws";
@@ -372,7 +371,7 @@ async function writeResponse(response: Response, res: http.ServerResponse) {
372371
const key = entry[0].toLowerCase();
373372
const value = entry[1];
374373
if (key === "set-cookie") {
375-
headers[key] = splitCookiesString(value);
374+
headers[key] = response.headers.getSetCookie();
376375
} else {
377376
headers[key] = value;
378377
}

0 commit comments

Comments
 (0)