This commit is contained in:
Rob Ede 2021-04-08 22:48:24 +01:00
parent 3f6350a4b6
commit ec375cdd71
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ impl HttpRequest {
#[cfg(feature = "cookies")] #[cfg(feature = "cookies")]
pub fn cookies(&self) -> Result<Ref<'_, Vec<Cookie<'static>>>, CookieParseError> { pub fn cookies(&self) -> Result<Ref<'_, Vec<Cookie<'static>>>, CookieParseError> {
use actix_http::http::header::COOKIE; use actix_http::http::header::COOKIE;
if self.extensions().get::<Cookies>().is_none() { if self.extensions().get::<Cookies>().is_none() {
let mut cookies = Vec::new(); let mut cookies = Vec::new();
for hdr in self.headers().get_all(COOKIE) { for hdr in self.headers().get_all(COOKIE) {