Ticket #623: fix.patch

File fix.patch, 0.6 kB (added by steffenp@gmx.de, 2 years ago)

Fix

  • tracrpc/web_ui.py

    old new  
    2929 
    3030        # Dump RPC functions 
    3131        content_type = req.get_header('Content-Type') 
    32         if content_type is not None or 'text/xml' not in content_type: 
     32        if content_type is None or 'text/xml' not in content_type: 
    3333            namespaces = {} 
    3434            for method in XMLRPCSystem(self.env).all_methods(req): 
    3535                namespace = method.namespace.replace('.', '_')