diff options
author | ianb <devnull@localhost> | 2008-01-11 23:41:56 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2008-01-11 23:41:56 +0000 |
commit | 12a2e2e906091edb172fbe2996988eb1ce199737 (patch) | |
tree | efa63a35217f539481368a20c53264475ae637c9 /paste/wsgilib.py | |
parent | b243a15c4c684a6b7ac147a7df910d216fdf2e53 (diff) | |
download | paste-12a2e2e906091edb172fbe2996988eb1ce199737.tar.gz |
fix intercept_output docstring example
Diffstat (limited to 'paste/wsgilib.py')
-rw-r--r-- | paste/wsgilib.py | 2 |
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 |