[Zope-Checkins] SVN: Zope/trunk/ - ZPublisher would fail to
recognize a XML-RPC request if the
Sidnei da Silva
sidnei at awkly.org
Tue Mar 29 11:47:42 EST 2005
Log message for revision 29719:
- ZPublisher would fail to recognize a XML-RPC request if the
content-type header included a 'charset' parameter.
Changed:
U Zope/trunk/doc/CHANGES.txt
U Zope/trunk/lib/python/ZPublisher/HTTPRequest.py
-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt 2005-03-29 15:47:48 UTC (rev 29718)
+++ Zope/trunk/doc/CHANGES.txt 2005-03-29 16:47:41 UTC (rev 29719)
@@ -58,6 +58,9 @@
Bugs fixed
+ - ZPublisher would fail to recognize a XML-RPC request if the
+ content-type header included a 'charset' parameter.
+
- Forward-ported 'aq_acquire'-related fix and associated tests
from Zope 2.7.4.
Modified: Zope/trunk/lib/python/ZPublisher/HTTPRequest.py
===================================================================
--- Zope/trunk/lib/python/ZPublisher/HTTPRequest.py 2005-03-29 15:47:48 UTC (rev 29718)
+++ Zope/trunk/lib/python/ZPublisher/HTTPRequest.py 2005-03-29 16:47:41 UTC (rev 29719)
@@ -384,7 +384,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