maxcountryman / axum-sessions

🥠 Cookie-based sessions for Axum via async-session.
MIT License
74 stars 18 forks source link

Change cookie insert to append #17

Closed sunhuachuang closed 1 year ago

sunhuachuang commented 1 year ago

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 commented 1 year ago

Nice find! Thank you.