Skip to content

fix getcookie cookie fallbacks for signed vs unsigned#539

Closed
d3zza wants to merge 1 commit into
expressjs:masterfrom
d3zza:master
Closed

fix getcookie cookie fallbacks for signed vs unsigned#539
d3zza wants to merge 1 commit into
expressjs:masterfrom
d3zza:master

Conversation

@d3zza

@d3zza d3zza commented Jan 10, 2018

Copy link
Copy Markdown

It seems to me that the fallbacks for retrieving cookies for signed and unsigned cookies are implemented the wrong way around. I'm guessing that this code doesn't get executed much since these are fallbacks only triggered when cookies are not available in headers. The reason the fallbacks are necessary in my project is because I'm using express session with sockets via https://github.com/oskosk/express-socket.io-session which stores the cookies in the req.

@dougwilson dougwilson self-assigned this Jan 10, 2018
@dougwilson dougwilson added the pr label Jan 10, 2018
@dougwilson

Copy link
Copy Markdown
Contributor

Hi @d3zza thanks for the pull request! I'm not sure I understand the underlying change and this breaks multiple existing tests. Can you help me understand what exactly the change is doing and is breaking the existing tests intentional?

@dougwilson dougwilson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing test suite.

@dougwilson

Copy link
Copy Markdown
Contributor

Closing per request in #540

@dougwilson dougwilson closed this Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants