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

add HttpResponse::add_removal_cookie #2586

Merged
merged 5 commits into from
Jan 19, 2022
Merged

add HttpResponse::add_removal_cookie #2586

merged 5 commits into from
Jan 19, 2022

Conversation

robjtede
Copy link
Member

@robjtede robjtede commented Jan 16, 2022

PR Type

Feature

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Addresses #2460

@robjtede robjtede added B-semver-minor A-web project: actix-web labels Jan 16, 2022
@robjtede robjtede added this to the actix-web v4 milestone Jan 16, 2022
@robjtede robjtede marked this pull request as ready for review January 19, 2022 01:59
@robjtede
Copy link
Member Author

robjtede commented Jan 19, 2022

Actually, it's a little wrong to add this in its current form. The app might have set a cookie with domain or path attributes and they need to match in the removal cookie in order to be effective.

@LukeMathWalker
Copy link
Contributor

Should we ask for a Cookie as input rather than a name and then call make_removal in the method?

@robjtede robjtede marked this pull request as ready for review January 19, 2022 15:55
@robjtede robjtede merged commit 5ee5554 into master Jan 19, 2022
@robjtede robjtede deleted the cookie-rework branch January 19, 2022 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web project: actix-web B-semver-minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants