diff sat/plugins/plugin_comp_ap_gateway/constants.py @ 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 0aa7023dcd08
children
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