11
This commit is contained in:
@@ -14,6 +14,7 @@ use crate::api_crypto::{self, ENCRYPTED_HEADER};
|
||||
use crate::app_config;
|
||||
use crate::auth_session::AuthSession;
|
||||
use crate::device_serial;
|
||||
use crate::oem_context;
|
||||
|
||||
pub async fn request_json(
|
||||
method: &str,
|
||||
@@ -48,6 +49,7 @@ pub async fn request_json(
|
||||
if let Ok(val) = HeaderValue::from_str(device_serial::device_serial()) {
|
||||
headers.insert(HeaderName::from_static("device_serial"), val);
|
||||
}
|
||||
oem_context::apply_install_headers(&mut headers);
|
||||
for (k, v) in extra_headers {
|
||||
if let (Ok(name), Ok(val)) = (
|
||||
HeaderName::from_bytes(k.as_bytes()),
|
||||
|
||||
Reference in New Issue
Block a user