From f8387a72919f0b4eef2a4b3bcde0d1b49ab6e60f Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 18 Mar 2023 15:01:55 +0100 Subject: [PATCH] plugin AP gateway: fix exception on HEAD requests --- sat/plugins/plugin_comp_ap_gateway/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sat/plugins/plugin_comp_ap_gateway/constants.py b/sat/plugins/plugin_comp_ap_gateway/constants.py index 98b91455..91299e22 100644 --- a/sat/plugins/plugin_comp_ap_gateway/constants.py +++ b/sat/plugins/plugin_comp_ap_gateway/constants.py @@ -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