Django

Code

Changeset 5377

Show
Ignore:
Timestamp:
05/28/07 08:49:15 (1 year ago)
Author:
mtredinnick
Message:

unicode: Ensure that all the strings we put into a mod_python response are
strings.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/unicode/django/core/handlers/modpython.py

    r5342 r5377  
    161161        for key, value in response.headers.items(): 
    162162            if key != 'Content-Type': 
    163                 req.headers_out[key] = value 
     163                req.headers_out[str(key)] = str(value) 
    164164        for c in response.cookies.values(): 
    165165            req.headers_out.add('Set-Cookie', c.output(header=''))