Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Using cookie-node alongside writeHead #13

Open
vanwaril opened this Issue · 1 comment

2 participants

vanwaril Jeremy Apthorp
vanwaril

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.

Jeremy Apthorp

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.