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

Changeset 143

Show
Ignore:
Timestamp:
01/28/05 12:05:46
Author:
rboerma
Message:

xmlrpcfilter 1.0.3: bugfix by gian paolo ciceri: Content-Length was set wrong.

Files:

Legend:

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

    r140 r143  
    3030## 
    3131## History: 
     32## 1.0.3   : 2005-01-28 Bugfix on content-length in 1.0.2 code fixed by 
     33##           Gian Paolo Ciceri 
    3234## 1.0.2   : 2005-01-26 changed infile dox based on ticket #97 
    3335## 1.0.1   : 2005-01-26 Speedup due to generator usage in CP2. 
     
    173175            print 'EXCEPTION: ',e 
    174176        cpg.response.headerMap['Content-Type']='text/xml' 
    175         cpg.response.headerMap['Content-Length']=`len(cpg.response.body)` 
     177        try: 
     178            cpg.response.headerMap['Content-Length']=`len(cpg.response.body[0])` 
     179        except TypeError: 
     180            # 1.0.3 : in case of an error, cpg.response.body is unscriptable 
     181            pass  
    176182 

Hosted by WebFaction

Log in as guest/cpguest to create tickets