fix: remove needless borrow in provider health headers
This commit is contained in:
1 parent
18c9546b51
commit
a99f8c8035
1 file changed
+1
-1
@@ -322,7 +322,7 @@ pub(crate) async fn provider_health_probe(
|
||||
for (name, value) in &request.header {
|
||||
let name = reqwest::header::HeaderName::from_bytes(name.as_bytes())
|
||||
.map_err(|error| format!("健康检测请求头名称无效: {error}"))?;
|
||||
let value = reqwest::header::HeaderValue::from_str(&value)
|
||||
let value = reqwest::header::HeaderValue::from_str(value)
|
||||
.map_err(|error| format!("健康检测请求头值无效: {error}"))?;
|
||||
headers.insert(name, value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user