fix(core): properly import HeaderName

This commit is contained in:
Lucas Nogueira 2024-02-03 13:00:39 -03:00
parent 2333cd1c83
commit 6b981d37dc
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1

View File

@ -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);