Skip to content

Commit

Permalink
Update middleware.rs
Browse files Browse the repository at this point in the history
Workaround for issue http-rs#278
  • Loading branch information
andreytkachenko authored Jun 19, 2019
1 parent 994ee1c commit 536e106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tide-cookies/src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl<State: Send + Sync + 'static> Middleware<State> for CookiesMiddleware {

let cookie_jar = cookie_data.content.clone();

cx.extensions_mut().insert(cookie_data);
let _ = cx.extensions_mut().insert(cookie_data);
let mut res = next.run(cx).await;
let headers = res.headers_mut();
for cookie in cookie_jar.read().unwrap().delta() {
Expand Down

0 comments on commit 536e106

Please sign in to comment.