diff options
Diffstat (limited to 'components/net/http_loader.rs')
-rw-r--r-- | components/net/http_loader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs index 0d0d7c46368..a8ba978df54 100644 --- a/components/net/http_loader.rs +++ b/components/net/http_loader.rs @@ -272,7 +272,7 @@ fn set_cookies_from_headers( cookie_jar: &RwLock<CookieStorage>, ) { for cookie in headers.get_all(header::SET_COOKIE) { - if let Ok(cookie_str) = cookie.to_str() { + if let Ok(cookie_str) = std::str::from_utf8(cookie.as_bytes()) { set_cookie_for_url(&cookie_jar, &url, &cookie_str); } } |