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

Changeset 791

Show
Ignore:
Timestamp:
11/05/05 05:13:50
Author:
lawouach
Message:

The Content-Length was not set correctly in beforeErrorResponse

Files:

Legend:

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

    r789 r791  
    44## 
    55## History: 
     6## 1.0.6   : 2005-12-04 Fixed error handling problems 
    67## 1.0.5   : 2005-11-04 Fixed Content-Length bug (http://www.cherrypy.org/ticket/384) 
    78## 1.0.4   : 2005-08-28 Fixed issues on input types which are not strings 
     
    208209            body = ''.join([chunk for chunk in message]) 
    209210            cherrypy.response.body = [xmlrpclib.dumps(xmlrpclib.Fault(1, body))] 
     211            cherrypy.response.headerMap['Content-Type'] = 'text/xml' 
     212            cherrypy.response.headerMap['Content-Length'] = len(cherrypy.response.body[0]) 
    210213        except: 
    211214            pass 

Hosted by WebFaction

Log in as guest/cpguest to create tickets