Skip to content

Commit

Permalink
Fix Rust verification example to borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
the-emerald authored Nov 17, 2024
1 parent 19cf70d commit 248a158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/receiving/verifying-payloads/how.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ pub async fn webhook_in(headers: HeaderMap, body: Bytes) -> StatusCode {
return StatusCode::INTERNAL_SERVER_ERROR;
}

if let Err(_) = wh.verify(body, headers) {
if let Err(_) = wh.verify(&body, &headers) {
return StatusCode::BAD_REQUEST;
}

Expand Down

0 comments on commit 248a158

Please sign in to comment.