Skip to content

Commit

Permalink
Bump undici to 5.22.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbbot committed Jul 26, 2023
1 parent 5dd1d31 commit 8ac3453
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
27 changes: 9 additions & 18 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions packages/miniflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@
"glob-to-regexp": "^0.4.1",
"http-cache-semantics": "^4.1.0",
"kleur": "^4.1.5",
"set-cookie-parser": "^2.6.0",
"source-map-support": "0.5.21",
"stoppable": "^1.1.0",
"undici": "^5.13.0",
"undici": "^5.22.1",
"workerd": "1.20230724.0",
"ws": "^8.11.0",
"youch": "^3.2.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/miniflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import type {
RequestInitCfProperties,
} from "@cloudflare/workers-types/experimental";
import exitHook from "exit-hook";
import { splitCookiesString } from "set-cookie-parser";
import stoppable from "stoppable";
import { Client } from "undici";
import { WebSocketServer } from "ws";
Expand Down Expand Up @@ -372,7 +371,7 @@ async function writeResponse(response: Response, res: http.ServerResponse) {
const key = entry[0].toLowerCase();
const value = entry[1];
if (key === "set-cookie") {
headers[key] = splitCookiesString(value);
headers[key] = response.headers.getSetCookie();
} else {
headers[key] = value;
}
Expand Down

0 comments on commit 8ac3453

Please sign in to comment.