Ticket #411: content-type-sniffing.patch

File content-type-sniffing.patch, 0.5 kB (added by careo, 2 years ago)
  • tracrpc/web_ui.py

    old new  
    2828        req.perm.assert_permission('XML_RPC') 
    2929 
    3030        # Dump RPC functions 
    31         if req.get_header('Content-Type') != 'text/xml'
     31        if 'text/xml' not in req.get_header('Content-Type')
    3232            namespaces = {} 
    3333            for method in XMLRPCSystem(self.env).all_methods(req): 
    3434                namespace = method.namespace.replace('.', '_')