# HG changeset patch # User Goffi # Date 1679148115 -3600 # Node ID d538b07cddf31ee60648d0f88caf6cdf490137f4 # Parent 74d4c9ff893d3affced494855c9dca329320d134 plugin AP gateway: fix exception on HEAD requests diff -r 74d4c9ff893d -r d538b07cddf3 sat/plugins/plugin_comp_ap_gateway/constants.py --- 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