Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 784

Show
Ignore:
Timestamp:
11/04/05 14:04:05
Author:
lawouach
Message:

Fixed the Content-Length bug (ticket 384)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/filter/xmlrpcfilter.py

    r768 r784  
    11########################################################################## 
    22## Remco Boerma 
     3## Sylvain Hellegouarch 
    34## 
    45## History: 
     6## 1.0.5   : 2005-11-04 Fixed Content-Length bug (http://www.cherrypy.org/ticket/384) 
    57## 1.0.4   : 2005-08-28 Fixed issues on input types which are not strings 
    68## 1.0.3   : 2005-01-28 Bugfix on content-length in 1.0.2 code fixed by 
     
    190192 
    191193        encoding = cherrypy.config.get('xmlRpcFilter.encoding', 'utf-8') 
    192          
     194 
    193195        cherrypy.response.body = [xmlrpclib.dumps( 
    194196            (cherrypy.response.body,), 
     
    197199            allow_none=1)] 
    198200        cherrypy.response.headerMap['Content-Type'] = 'text/xml' 
    199         cherrypy.response.headerMap['Content-Length'] = `len(cherrypy.response.body)` 
     201        cherrypy.response.headerMap['Content-Length'] = len(cherrypy.response.body[0]) 
    200202     
    201203    def beforeErrorResponse(self): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets