comparison 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
comparison
equal deleted inserted replaced
4011:74d4c9ff893d 4012:d538b07cddf3
41 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public") 41 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public")
42 AP_REQUEST_TYPES = { 42 AP_REQUEST_TYPES = {
43 "GET": {TYPE_ACTOR, TYPE_OUTBOX, TYPE_FOLLOWERS, TYPE_FOLLOWING}, 43 "GET": {TYPE_ACTOR, TYPE_OUTBOX, TYPE_FOLLOWERS, TYPE_FOLLOWING},
44 "POST": {"inbox"}, 44 "POST": {"inbox"},
45 } 45 }
46 AP_REQUEST_TYPES["HEAD"] = AP_REQUEST_TYPES["GET"]
46 # headers to check for signature 47 # headers to check for signature
47 SIGN_HEADERS = { 48 SIGN_HEADERS = {
48 # headers needed for all HTTP methods 49 # headers needed for all HTTP methods
49 None: [ 50 None: [
50 # tuples are equivalent headers/pseudo headers, one of them must be present 51 # tuples are equivalent headers/pseudo headers, one of them must be present