allow HEAD requests to webmention
This commit is contained in:
parent
6616a748c0
commit
3fcfa1cd85
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ def handler():
|
||||||
print("Content-Type: text/plain; charset=utf-8\r\n\r")
|
print("Content-Type: text/plain; charset=utf-8\r\n\r")
|
||||||
print("Thanks for mentioning us!")
|
print("Thanks for mentioning us!")
|
||||||
print(source)
|
print(source)
|
||||||
elif method == "GET":
|
elif method in ("GET", "HEAD"):
|
||||||
print("Status: 200 OK\r")
|
print("Status: 200 OK\r")
|
||||||
print("Content-Type: text/plain; charset=utf-8\r\n\r")
|
print("Content-Type: text/plain; charset=utf-8\r\n\r")
|
||||||
for mention in Mention.load_past_mentions():
|
for mention in Mention.load_past_mentions():
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue