diff options
Diffstat (limited to 'src/request_handler/mod.rs')
-rw-r--r-- | src/request_handler/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/request_handler/mod.rs b/src/request_handler/mod.rs index 4a01af6..2e92821 100644 --- a/src/request_handler/mod.rs +++ b/src/request_handler/mod.rs @@ -162,8 +162,10 @@ fn parse_header_infos(req: &Request<Bytes>) -> Result<HeaderExtract, String> { let mut cookies = Vec::new(); for header_value in req.headers().get_all(::http::header::COOKIE) { let value = header_value.to_str().or(Err("Failed to read cookie value"))?; - let cookie = Cookie::parse(value).or(Err("Failed to parse cookie value"))?; - cookies.push(cookie); + for cookie_part in value.split("; ") { + let cookie = Cookie::parse(cookie_part).or(Err("Failed to parse cookie value"))?; + cookies.push(cookie); + } } Ok(HeaderExtract { totp_secrets, cookies }) |