# HG changeset patch # User Goffi # Date 1669389250 -3600 # Node ID cd0943ceb3263ea6610d4c54b3ff0c74eb83ac45 # Parent 3b72743b92db266a9ae50dc5e350a3e96767c478 component AP gateway: fix header checking for redirection diff -r 3b72743b92db -r cd0943ceb326 sat/plugins/plugin_comp_ap_gateway/http_server.py --- a/sat/plugins/plugin_comp_ap_gateway/http_server.py Thu Nov 24 12:25:07 2022 +0100 +++ b/sat/plugins/plugin_comp_ap_gateway/http_server.py Fri Nov 25 16:14:10 2022 +0100 @@ -942,7 +942,7 @@ path ) request_type, extra_args = self.apg.parseAPURL(ap_url) - if ((request.getHeader("accept") != MEDIA_TYPE_AP + if ((MEDIA_TYPE_AP 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 = {}