mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-24 22:37:35 +02:00
Fix clippy warning (#755)
This commit is contained in:
@ -414,7 +414,7 @@ impl ClientRequest {
|
||||
}
|
||||
|
||||
// user agent
|
||||
if !self.head.headers.contains_key(&header::USER_AGENT) {
|
||||
if !self.head.headers.contains_key(header::USER_AGENT) {
|
||||
self.head.headers.insert(
|
||||
header::USER_AGENT,
|
||||
HeaderValue::from_static(concat!("awc/", env!("CARGO_PKG_VERSION"))),
|
||||
|
Reference in New Issue
Block a user