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

Changeset 316

Show
Ignore:
Timestamp:
06/15/05 00:48:05
Author:
fumanchu
Message:

Bugfix: wrap body string in an iterator.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/ooconf/cherrypy/_cphttptools.py

    r314 r316  
    392392    if (cpg.config.get("server.protocolVersion") != "HTTP/1.1" 
    393393        and cpg.response.headerMap.get('Content-Length') == 0): 
    394         cpg.response.body = content = ''.join(cpg.response.body) 
     394        content = ''.join(cpg.response.body) 
     395        cpg.response.body = [content] 
    395396        cpg.response.headerMap['Content-Length'] = len(content) 
    396397     

Hosted by WebFaction

Log in as guest/cpguest to create tickets