Django

Code

Changeset 6895

Show
Ignore:
Timestamp:
12/05/07 03:28:56 (2 years ago)
Author:
mtredinnick
Message:

Fixed #6063 -- Caught one place in HttpResponse that was not returning a str
type (violation of WSGI spec). Thanks, janusz.harkot@gmail.com.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/http/__init__.py

    r6662 r6895  
    332332        if isinstance(chunk, unicode): 
    333333            chunk = chunk.encode(self._charset) 
    334         return chunk 
     334        return str(chunk) 
    335335 
    336336    def close(self):