Commits

Robert Brewer committed a94ee01

Fix for xmlprcfilter (2.1 branch; the trunk doesn't need this because response.body magically handles its own iteration).

Comments (0)

Files changed (1)

cherrypy/lib/filter/xmlrpcfilter.py

             encoding=encoding,
             allow_none=1)]
         cherrypy.response.headerMap['Content-Type'] = 'text/xml'
-        cherrypy.response.headerMap['Content-Length'] = `len(cherrypy.response.body)`
+        cherrypy.response.headerMap['Content-Length'] = len(cherrypy.response.body[0])
     
     def beforeErrorResponse(self):
         try: