Skip to content

Commit

Permalink
Update svix-cli/src/cmds/signature.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Platte <[email protected]>
  • Loading branch information
svix-onelson and svix-jplatte authored Dec 23, 2024
1 parent 2810f9a commit 3a478ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svix-cli/src/cmds/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl SignatureCommands {
let webhook = svix::webhooks::Webhook::new(&secret)?;
let mut headers = http::HeaderMap::with_capacity(3);
headers.insert("svix-id", msg_id.parse()?);
headers.insert("svix-timestamp", format!("{}", timestamp).parse()?);
headers.insert("svix-timestamp", timestamp.to_string().parse()?);
headers.insert("svix-signature", signature.parse()?);
webhook.verify_ignoring_timestamp(payload.as_bytes(), &headers)?;
}
Expand Down

0 comments on commit 3a478ff

Please sign in to comment.