Changeset 181
- Timestamp:
- 07/18/05 15:14:05 (3 years ago)
- Files:
-
- django/trunk/django/core/handlers/modpython.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/handlers/modpython.py
r169 r181 267 267 "Populates the mod_python request object with an HttpResponse" 268 268 mod_python_req.content_type = http_response['Content-Type'] or httpwrappers.DEFAULT_MIME_TYPE 269 del http_response['Content-Type']270 269 if http_response.cookies: 271 270 mod_python_req.headers_out['Set-Cookie'] = http_response.cookies.output(header='') 272 271 for key, value in http_response.headers.items(): 273 mod_python_req.headers_out[key] = value 272 if key != 'Content-Type': 273 mod_python_req.headers_out[key] = value 274 274 mod_python_req.status = http_response.status_code 275 275 mod_python_req.write(http_response.get_content_as_string('utf-8'))
