From bc4ee3afc34433cce65c0b214bbff854b8ec65b7 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 8 Jul 2024 21:56:27 +0300 Subject: webmention: HTTP 202 shouldn't include Location URL --- src/webmentions/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/webmentions') diff --git a/src/webmentions/mod.rs b/src/webmentions/mod.rs index 95ea870..3e9b094 100644 --- a/src/webmentions/mod.rs +++ b/src/webmentions/mod.rs @@ -31,9 +31,7 @@ async fn accept_webmention>( } match queue.put(&webmention).await { - Ok(id) => (StatusCode::ACCEPTED, [ - ("Location", format!("/.kittybox/webmention/{id}")) - ]).into_response(), + Ok(id) => StatusCode::ACCEPTED.into_response(), Err(err) => (StatusCode::INTERNAL_SERVER_ERROR, [ ("Content-Type", "text/plain") ], err.to_string()).into_response() -- cgit 1.4.1