summaryrefslogtreecommitdiff
path: root/paste/wsgilib.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2008-01-11 23:41:56 +0000
committerianb <devnull@localhost>2008-01-11 23:41:56 +0000
commit12a2e2e906091edb172fbe2996988eb1ce199737 (patch)
treeefa63a35217f539481368a20c53264475ae637c9 /paste/wsgilib.py
parentb243a15c4c684a6b7ac147a7df910d216fdf2e53 (diff)
downloadpaste-12a2e2e906091edb172fbe2996988eb1ce199737.tar.gz
fix intercept_output docstring example
Diffstat (limited to 'paste/wsgilib.py')
-rw-r--r--paste/wsgilib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py
index 02dd2dc..7aa1404 100644
--- a/paste/wsgilib.py
+++ b/paste/wsgilib.py
@@ -492,6 +492,7 @@ def intercept_output(environ, application, conditional=None,
def replacement_app(environ, start_response):
status, headers, body = intercept_output(
environ, application)
+ start_response(status, headers)
content_type = header_value(headers, 'content-type')
if (not content_type
or not content_type.startswith('text/html')):
@@ -517,6 +518,7 @@ def intercept_output(environ, application, conditional=None,
start_response)
if status is None:
return body
+ start_response(status, headers)
body = re.sub(r'<.*?>', '', body)
return [body]
return replacement_app