Mercurial > libervia-backend
changeset 4012:d538b07cddf3
plugin AP gateway: fix exception on HEAD requests
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 18 Mar 2023 15:01:55 +0100 |
parents | 74d4c9ff893d |
children | b13673d998dc |
files | sat/plugins/plugin_comp_ap_gateway/constants.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/constants.py Thu Mar 16 16:43:47 2023 +0100 +++ b/sat/plugins/plugin_comp_ap_gateway/constants.py Sat Mar 18 15:01:55 2023 +0100 @@ -43,6 +43,7 @@ "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