Skip to content

Commit

Permalink
add custom header for glm
Browse files Browse the repository at this point in the history
  • Loading branch information
jctaoo committed Oct 17, 2023
1 parent e7bb952 commit beb3d56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ pub struct Header {
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(rename = "x5t#S256")]
pub x5t_s256: Option<String>,

/// 智谱的自定义字段,其他请勿使用, TODO: 使用 trait 或者 enum 来区分不同 header
#[serde(skip_serializing_if = "Option::is_none")]
pub sign_type: Option<String>,
}

impl Header {
Expand All @@ -80,6 +84,7 @@ impl Header {
x5c: None,
x5t: None,
x5t_s256: None,
sign_type: None,
}
}

Expand Down

0 comments on commit beb3d56

Please sign in to comment.