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
|
path
|
||||||
)
|
)
|
||||||
request_type, extra_args = self.apg.parseAPURL(ap_url)
|
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)):
|
and request_type in self.apg.html_redirect)):
|
||||||
# this is not a AP request, and we have a redirections for it
|
# this is not a AP request, and we have a redirections for it
|
||||||
kw = {}
|
kw = {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue