This commit is contained in:
fengchuanhn@gmail.com
2026-05-22 18:13:05 +08:00
parent 1368db488f
commit 0eb5dbde5b
3 changed files with 34 additions and 1 deletions

View File

@@ -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()),