mirror of https://github.com/fafhrd91/actix-web
refactor: a const item with interior mutability should not be borrowed
This commit is contained in:
parent
dd437a6bab
commit
ee12b241b3
|
@ -414,7 +414,7 @@ impl ClientRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
// user agent
|
// user agent
|
||||||
if !self.head.headers.contains_key(&header::USER_AGENT) {
|
if !self.head.headers.contains_key(header::USER_AGENT) {
|
||||||
self.head.headers.insert(
|
self.head.headers.insert(
|
||||||
header::USER_AGENT,
|
header::USER_AGENT,
|
||||||
HeaderValue::from_static(concat!("awc/", env!("CARGO_PKG_VERSION"))),
|
HeaderValue::from_static(concat!("awc/", env!("CARGO_PKG_VERSION"))),
|
||||||
|
|
Loading…
Reference in New Issue