Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(http/cookie_map): Add maxAge to set/delete options #3524

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

oliverjam
Copy link
Contributor

Adds maxAge to the CookieMapSetDeleteOptions and SecureCookieMapSetDeleteOptions, so the interface matches the implementation. Closes #3523.

I added a test to make sure maxAge keeps working, since there wasn't one. The option gets converted to expires, so I needed to mock the time with FakeTime.

@oliverjam oliverjam requested a review from kt3k as a code owner August 8, 2023 10:52
@CLAassistant
Copy link

CLAassistant commented Aug 8, 2023

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the http label Aug 8, 2023
Copy link
Contributor

@lino-levan lino-levan left a comment

Choose a reason for hiding this comment

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

LGTM. Nice catch! Thanks for the test.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@kt3k kt3k merged commit c34d441 into denoland:main Aug 11, 2023
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.

CookieMapSetDeleteOptions is missing maxAge
4 participants