component AP gateway: fix bad condition
This commit is contained in:
parent
9560a23f78
commit
6459ef59bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue