Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include cookies in rspHeaders, in addition to rspCookies
(flip (++)) was chosen under the assumption that there will usually be more cookies in rspCookies than in rspHeaders
- Loading branch information
f417f4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is OK w/ me (and I will pull it later) but I would prefer it if the stuff you're trying to do was included in our Cookie object also.
f417f4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I never added it to the Cookie record, I just did this:
Which is identical to the older
addCookie
, except for the"; httponly"
bit. And, there are other things we don't support, such as expiring 8 hours in the future, instead of at 6:24 pm (UTC), which should arguably be supported as well, but at least this gives people a workaround if there is some obscure cookie thing we don't support.