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 28 28 req.perm.assert_permission('XML_RPC') 29 29 30 30 # Dump RPC functions 31 if req.get_header('Content-Type') != 'text/xml':31 if 'text/xml' not in req.get_header('Content-Type'): 32 32 namespaces = {} 33 33 for method in XMLRPCSystem(self.env).all_methods(req): 34 34 namespace = method.namespace.replace('.', '_')
