Skip to content

Commit e9cd032

Browse files
committed
v0.3.21-debug.2
1 parent e118b00 commit e9cd032

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

handlers.client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,14 @@ async function doFetch(
261261
method: request.method as any,
262262
headers: { ...request.headers, host: request.domain },
263263
body: request.body as any,
264-
...(request.body ? { duplex: "half" } : {}),
265264
signal,
266265
},
267266
);
268267

269268
const headers: Record<string, Array<string>> = {};
270269

270+
console.log("Response headers", JSON.stringify(Object.entries(response.headers), null, 2));
271+
271272
for (const [key, value] of Object.entries(response.headers)) {
272273
if (typeof value === 'string') {
273274
headers[key] = [value];
@@ -276,6 +277,8 @@ async function doFetch(
276277
}
277278
}
278279

280+
console.log("response-start headers", JSON.stringify(headers, null, 2));
281+
279282
await clientCh.send({
280283
type: "response-start",
281284
id: request.id,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deco-cx/warp-node",
3-
"version": "0.3.21-debug.1",
3+
"version": "0.3.21-debug.2",
44
"description": "WebSocket tunneling library for Node.js and other runtimes",
55
"type": "module",
66
"main": "dist/mod.js",

0 commit comments

Comments
 (0)