Skip to content

Commit fd61bc9

Browse files
authored
refactor(cookie): avoid duplicate cookie insertion (#2834)
1 parent 0bfa526 commit fd61bc9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/async_impl/client.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2951,15 +2951,6 @@ impl Future for PendingRequest {
29512951
},
29522952
};
29532953

2954-
#[cfg(feature = "cookies")]
2955-
{
2956-
if let Some(ref cookie_store) = self.client.cookie_store {
2957-
let mut cookies = cookie::extract_response_cookie_headers(res.headers()).peekable();
2958-
if cookies.peek().is_some() {
2959-
cookie_store.set_cookies(&mut cookies, &self.url);
2960-
}
2961-
}
2962-
}
29632954
if let Some(url) = &res
29642955
.extensions()
29652956
.get::<tower_http::follow_redirect::RequestUri>()

0 commit comments

Comments
 (0)