Add HEAD method to webmention.py

This commit is contained in:
Spencer Killen 2026-08-05 09:55:06 -06:00
parent 6616a748c0
commit c77944cf77

View file

@ -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():