Changeset 569
- Timestamp:
- 08/28/05 14:49:41
- Files:
-
- trunk/cherrypy/lib/filter/xmlrpcfilter.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/filter/xmlrpcfilter.py
r497 r569 30 30 ## 31 31 ## History: 32 ## 1.0.4 : 2005-08-28 Fixed issues on input types which are not strings 32 33 ## 1.0.3 : 2005-01-28 Bugfix on content-length in 1.0.2 code fixed by 33 34 ## Gian Paolo Ciceri … … 185 186 or not cherrypy.request.isRPC): 186 187 return 188 189 encoding = cherrypy.config.get('xmlRpcFilter.encoding', 'utf-8') 190 191 if not isinstance(cherrypy.response.body, list): 192 cherrypy.response.body = [cherrypy.response.body] 187 193 188 194 cherrypy.response.body = [xmlrpclib.dumps( 189 (cherrypy.response.body[0],), methodresponse=1, allow_none=1)] 195 (cherrypy.response.body[0],), 196 methodresponse=1, 197 encoding=encoding, 198 allow_none=1)] 190 199 cherrypy.response.headerMap['Content-Type'] = 'text/xml' 191 200 cherrypy.response.headerMap['Content-Length'] = `len(cherrypy.response.body[0])`

