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

Change cookie insert to append #17

Merged
merged 1 commit into from Nov 30, 2022

Conversation

sunhuachuang
Copy link
Contributor

Refs: https://docs.rs/http/0.2.8/http/header/struct.HeaderMap.html#method.insert
insert will delete all previous values, but append will only append to the value list.

This is useful for allowing multiple header values, avoiding deleting other cookie content.

@maxcountryman
Copy link
Owner

Nice find! Thank you.

@maxcountryman maxcountryman merged commit 4e2694e into maxcountryman:main Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants