summaryrefslogtreecommitdiff
path: root/django/core/handlers/modpython.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-04-09 23:54:34 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-04-09 23:54:34 +0000
commitbc4638d722c0e48cfd6bc4d8084b41445f987004 (patch)
tree3fa74811a9275d242c8f4808571abd95fe801e74 /django/core/handlers/modpython.py
parentb0a60c186ee2a5564b5fa897b994e4ff2b7ad5b2 (diff)
Fixed #1569 -- HttpResponse now accepts iterators. Thanks, Maniac
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/handlers/modpython.py')
-rw-r--r--django/core/handlers/modpython.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py
index eec35ff072..37499c6f06 100644
--- a/django/core/handlers/modpython.py
+++ b/django/core/handlers/modpython.py
@@ -162,7 +162,8 @@ def populate_apache_request(http_response, mod_python_req):
for c in http_response.cookies.values():
mod_python_req.headers_out.add('Set-Cookie', c.output(header=''))
mod_python_req.status = http_response.status_code
- mod_python_req.write(http_response.get_content_as_string(settings.DEFAULT_CHARSET))
+ for chunk in http_response.iterator:
+ mod_python_req.write(chunk)
def handler(req):
# mod_python hooks into this function.