Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Dec 20, 2023
1 parent 4de7021 commit f148acf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ tokio-native-tls = { workspace = true, optional = true }
tokio-openssl = { workspace = true, optional = true }
tokio-rustls = { workspace = true, optional = true }
tokio-util = { workspace = true, features = ["io"] }
tower = { workspace = true, optional = true, default-features = false, features = ["buffer"] }
tower = { workspace = true, optional = true, default-features = false, features = ["buffer", "util"] }
tracing = { workspace = true }
url = { workspace = true, optional = true }
x509-parser = { workspace = true, optional = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/http/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::sync::Arc;
use bytes::Bytes;
#[cfg(feature = "cookie")]
use cookie::{Cookie, CookieJar};
use http::header::{AsHeaderName, HeaderMap, HeaderValue, IntoHeaderName, CONTENT_TYPE, COOKIE};
use http::header::{AsHeaderName, HeaderMap, HeaderValue, IntoHeaderName, CONTENT_TYPE};
use http::method::Method;
pub use http::request::Parts;
use http::uri::{Scheme, Uri};
Expand Down Expand Up @@ -142,7 +142,7 @@ impl Request {
#[cfg(feature = "cookie")]
let cookies = {
let mut cookie_jar = CookieJar::new();
for header in headers.get_all(COOKIE) {
for header in headers.get_all(http::header::COOKIE) {
if let Ok(header) = header.to_str() {
for cookie_str in header.split(';').map(|s| s.trim()) {
if let Ok(cookie) = Cookie::parse_encoded(cookie_str).map(|c| c.into_owned()) {
Expand Down

0 comments on commit f148acf

Please sign in to comment.