diff options
| author | ianb <devnull@localhost> | 2005-12-13 08:20:25 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-12-13 08:20:25 +0000 |
| commit | e6d3daa93b95a5597575eb466b3a580ff26bb810 (patch) | |
| tree | 05787b6102f93677179ac7ba3e8651b1fe56b063 /paste/httpexceptions.py | |
| parent | ac8b22aed75bc39964804e790aecea870862d23e (diff) | |
| download | paste-e6d3daa93b95a5597575eb466b3a580ff26bb810.tar.gz | |
Deprecate the wsgilib.error_response functions; stop using them internally as well, in preference of httpexceptions.*.wsgi_application
Diffstat (limited to 'paste/httpexceptions.py')
| -rw-r--r-- | paste/httpexceptions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index 3477c03..af0b7ea 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -214,10 +214,11 @@ class HTTPException(Exception): if isinstance(content, unicode): content = content.encode('utf8') headers['content_type'] += '; charset=utf8' + print "all good", environ, start_response start_response('%s %s' % (self.code, self.title), headers.items(), exc_info) - yield content + return [content] def __repr__(self): |
