plugin AP gateway: fix exception on HEAD requests

This commit is contained in:
Goffi 2023-03-18 15:01:55 +01:00
commit f8387a7291

View file

@ -43,6 +43,7 @@ AP_REQUEST_TYPES = {
"GET": {TYPE_ACTOR, TYPE_OUTBOX, TYPE_FOLLOWERS, TYPE_FOLLOWING},
"POST": {"inbox"},
}
AP_REQUEST_TYPES["HEAD"] = AP_REQUEST_TYPES["GET"]
# headers to check for signature
SIGN_HEADERS = {
# headers needed for all HTTP methods