From 3fcfa1cd85b7e1f325a88b6239f7d0a7dc316a2a Mon Sep 17 00:00:00 2001 From: Spencer Killen Date: Tue, 14 Jul 2026 00:43:22 -0600 Subject: [PATCH] allow HEAD requests to webmention --- services/webmention.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/webmention.py b/services/webmention.py index 55139bb..7c1eb97 100644 --- a/services/webmention.py +++ b/services/webmention.py @@ -52,7 +52,7 @@ def handler(): print("Content-Type: text/plain; charset=utf-8\r\n\r") print("Thanks for mentioning us!") print(source) - elif method == "GET": + elif method in ("GET", "HEAD"): print("Status: 200 OK\r") print("Content-Type: text/plain; charset=utf-8\r\n\r") for mention in Mention.load_past_mentions():