about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-07-08 21:56:27 +0300
committerVika <vika@fireburn.ru>2024-07-08 21:56:27 +0300
commitbc4ee3afc34433cce65c0b214bbff854b8ec65b7 (patch)
treef331a929994f1de1748923657aefeb3e11ebe9a6 /src
parent44d30cb4bd710a5fce6804ea29bdfb3e224407ea (diff)
downloadkittybox-bc4ee3afc34433cce65c0b214bbff854b8ec65b7.tar.zst
webmention: HTTP 202 shouldn't include Location URL
Diffstat (limited to 'src')
-rw-r--r--src/webmentions/mod.rs4
1 files changed, 1 insertions, 3 deletions
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<Q: JobQueue<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()