component AP gateway: fix bad condition

This commit is contained in:
Goffi 2022-11-25 16:34:09 +01:00
commit 6459ef59bc

View file

@ -942,7 +942,7 @@ class HTTPAPGServer(web_resource.Resource):
path
)
request_type, extra_args = self.apg.parseAPURL(ap_url)
if ((MEDIA_TYPE_AP in (request.getHeader("accept") or "")
if ((MEDIA_TYPE_AP not in (request.getHeader("accept") or "")
and request_type in self.apg.html_redirect)):
# this is not a AP request, and we have a redirections for it
kw = {}