cookie-node icon indicating copy to clipboard operation
cookie-node copied to clipboard

Using cookie-node alongside writeHead

Open vanwaril opened this issue 15 years ago • 1 comments

Its undocumented how to use cookie-node alongside a writeHead call. Only checking the source for cookie-node showed me it was looking for headers as an object -- I was passing headers to writeHead as an array of arrays, which is also supported, but cookie-node doesn't work with that.

vanwaril avatar Jan 04 '11 19:01 vanwaril

cookie-node also fails if the call to writeHead has only one argument (the response code).

nornagon avatar Jan 21 '11 11:01 nornagon