Mercurial > libervia-backend
diff sat/plugins/plugin_comp_ap_gateway/http_server.py @ 3992:1c84268752a1
component AP gateway: fix bad condition
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 25 Nov 2022 16:34:09 +0100 |
parents | cd0943ceb326 |
children | 69d970f974ff |
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/http_server.py Fri Nov 25 16:14:10 2022 +0100 +++ b/sat/plugins/plugin_comp_ap_gateway/http_server.py Fri Nov 25 16:34:09 2022 +0100 @@ -942,7 +942,7 @@ 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 = {}