mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-11 11:53:21 +03:00
fix(core): properly import HeaderName
This commit is contained in:
parent
2333cd1c83
commit
6b981d37dc
@ -182,7 +182,7 @@ fn handle_ipc_message<R: Runtime>(message: String, manager: &AppManager<R>, labe
|
||||
let mut headers = http::HeaderMap::default();
|
||||
for (key, value) in map {
|
||||
if let (Ok(key), Ok(value)) = (
|
||||
http::HeaderName::from_bytes(key.as_bytes()),
|
||||
http::header::HeaderName::from_bytes(key.as_bytes()),
|
||||
http::HeaderValue::from_str(&value),
|
||||
) {
|
||||
headers.insert(key, value);
|
||||
|
Loading…
Reference in New Issue
Block a user