[Zope-Checkins] CVS: Packages/ZPublisher - HTTPRequest.py:1.90.2.9

Sidnei da Silva sidnei at awkly.org
Tue Mar 29 12:22:55 EST 2005


Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv21100/lib/python/ZPublisher

Modified Files:
      Tag: Zope-2_7-branch
	HTTPRequest.py 
Log Message:

      - ZPublisher would fail to recognize a XML-RPC request if the
        content-type header included a 'charset' parameter.


=== Packages/ZPublisher/HTTPRequest.py 1.90.2.8 => 1.90.2.9 ===
--- Packages/ZPublisher/HTTPRequest.py:1.90.2.8	Fri Nov 26 13:45:50 2004
+++ Packages/ZPublisher/HTTPRequest.py	Tue Mar 29 12:22:53 2005
@@ -386,7 +386,7 @@
         if not hasattr(fs,'list') or fs.list is None:
             # Hm, maybe it's an XML-RPC
             if (fs.headers.has_key('content-type') and
-                fs.headers['content-type'] == 'text/xml' and
+                'text/xml' in fs.headers['content-type'] and
                 method == 'POST'):
                 # Ye haaa, XML-RPC!
                 global xmlrpc



More information about the Zope-Checkins mailing list