Skip to content

Commit 036828a

Browse files
committed
Handle HEAD requests as well
Doesn't hurt to respond to HEAD requests We're handling the same way; clients dont ready body and content is tiny tiny.
1 parent 6ff3353 commit 036828a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

donation-api/src/donation_api/entrypoint.py

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ async def _():
2727
if conf.merchantid_domain_association:
2828

2929
@app.get("/.well-known/apple-developer-merchantid-domain-association")
30+
@app.head("/.well-known/apple-developer-merchantid-domain-association")
3031
async def _():
3132
"""Used to validate domain ownership with apple/stripe"""
3233
return PlainTextResponse(
@@ -36,6 +37,7 @@ async def _():
3637
if conf.merchantid_domain_association_txt:
3738

3839
@app.get("/.well-known/apple-developer-merchantid-domain-association.txt")
40+
@app.head("/.well-known/apple-developer-merchantid-domain-association.txt")
3941
async def _():
4042
"""Used to validate domain ownership with apple"""
4143
return PlainTextResponse(

0 commit comments

Comments
 (0)