[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins] SVN: Zope/trunk/ - ZPublisher would fail to
From:       Sidnei da Silva <sidnei () awkly ! org>
Date:       2005-03-29 16:47:42
Message-ID: 20050329164742.B14CD203342 () mail ! zope ! org
[Download RAW message or body]

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

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic