Skip to content

Commit

Permalink
Respond with a 200 for vercel's verification process (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacbd authored Sep 3, 2024
1 parent 7acd3cc commit 2049da7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ pub async fn ingest(
None => {
warn!("received payload without signature");
counter!("drain_recv_invalid_signature").increment(1);
// Vercel's verificaion request doesn't actually sign the request,
// even if you set a custom secret in advance.
return Response::builder()
.status(StatusCode::BAD_REQUEST)
.status(StatusCode::OK)
.body(Body::empty())
.expect("Defined Responses to be infalliable.");
}
Expand Down

0 comments on commit 2049da7

Please sign in to comment.