diff roundup/cgi/client.py @ 4923:91029cc0dc59 routing

routing: merge changes from default
author anatoly techtonik <techtonik@gmail.com>
date Tue, 12 Aug 2014 01:10:59 +0300
parents 35dc9191394d 24209344b507
children 355ce349df42
line wrap: on
line diff
--- a/roundup/cgi/client.py	Tue Aug 12 00:36:15 2014 +0300
+++ b/roundup/cgi/client.py	Tue Aug 12 01:10:59 2014 +0300
@@ -390,6 +390,11 @@
 
 
     def handle_xmlrpc(self):
+        if self.env.get('CONTENT_TYPE') != 'text/xml':
+            self.write("This is the endpoint of Roundup <a href='" +
+                "http://www.roundup-tracker.org/docs/xmlrpc.html'>" +
+                "XML-RPC interface</a>.")
+            return
 
         # Pull the raw XML out of the form.  The "value" attribute
         # will be the raw content of the POST request.

Roundup Issue Tracker: http://roundup-tracker.org/