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

Changeset 446

Show
Ignore:
Timestamp:
07/10/05 23:33:11
Author:
fumanchu
Message:

Fix for ticket #221.

Files:

Legend:

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

    r440 r446  
    499499    #   this way CP won't load the whole file in memory 
    500500    cherrypy.response.headerMap['Content-Length'] = stat[6] 
    501     cherrypy.response.body = open(filename, 'rb') 
     501    bodyfile = open(filename, 'rb') 
     502    cherrypy.response.body = fileGenerator(bodyfile) 
    502503     
    503504    # Set content-type based on filename extension 

Hosted by WebFaction

Log in as guest/cpguest to create tickets