Changeset 785
- Timestamp:
- 11/04/05 14:28:55
- Files:
-
- trunk/cherrypy/lib/filter/xmlrpcfilter.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/filter/xmlrpcfilter.py
r784 r785 193 193 encoding = cherrypy.config.get('xmlRpcFilter.encoding', 'utf-8') 194 194 195 # See xmlrpclib documentation 196 # Python's None value cannot be used in standard XML-RPC; 197 # to allow using it via an extension, provide a true value for allow_none. 195 198 cherrypy.response.body = [xmlrpclib.dumps( 196 199 (cherrypy.response.body,), 197 200 methodresponse=1, 198 201 encoding=encoding, 199 allow_none= 1)]202 allow_none=0)] 200 203 cherrypy.response.headerMap['Content-Type'] = 'text/xml' 201 204 cherrypy.response.headerMap['Content-Length'] = len(cherrypy.response.body[0])

