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

Changeset 1441

Show
Ignore:
Timestamp:
11/18/06 19:55:56
Author:
fumanchu
Message:

Fix for #599 (Trouble with GZip and Etag (with enabled autotags)). Response.body was being set to [], which doesn't evaluate to False.

Files:

Legend:

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

    r1433 r1441  
    479479            # item list is much faster than iterating over every character 
    480480            # in a long string. 
    481             value = [value] 
     481            if value: 
     482                value = [value] 
     483            else: 
     484                # [''] doesn't evaluate to False, so replace it with []. 
     485                value = [] 
    482486        elif isinstance(value, types.FileType): 
    483487            value = file_generator(value) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets