prevent header cookie from disabling session cookie
@@ -183,7 +183,7 @@ fn main() -> Result<i32> {
Err(err) => return Err(err.into()),
}
}
- if let Some(cookie) = headers.get(COOKIE) {
+ if let Some(cookie) = headers.remove(COOKIE) {
for cookie in cookie.to_str()?.split(';') {
cookie_jar.insert_raw(&cookie.parse()?, &url)?;
}
