diff options
author | pjenvey <devnull@localhost> | 2006-07-27 01:46:42 +0000 |
---|---|---|
committer | pjenvey <devnull@localhost> | 2006-07-27 01:46:42 +0000 |
commit | 3f11c29ee57abbfc8b801c38a5879b4346a3a99f (patch) | |
tree | 504b15aaf53688c6029f098ac9170c0e12379bae /paste/evalexception | |
parent | 9914f34bd97f8fe0cf6529d1cd6f659671e8d59f (diff) | |
download | paste-3f11c29ee57abbfc8b801c38a5879b4346a3a99f.tar.gz |
o use response.HeaderDict instead of wsgilib.ResponseHeaderDict
o fixed the misleading ResponseHeaderDict deprecation warning
Diffstat (limited to 'paste/evalexception')
-rw-r--r-- | paste/evalexception/middleware.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py index eed8a95..85f539e 100644 --- a/paste/evalexception/middleware.py +++ b/paste/evalexception/middleware.py @@ -38,6 +38,7 @@ from paste import wsgilib from paste import urlparser from paste import httpexceptions from paste import request +from paste import response import evalcontext limit = 200 @@ -107,7 +108,7 @@ def wsgiapp(): def application(environ, start_response): form = wsgilib.parse_formvars(environ, include_get_vars=True) - headers = wsgilib.ResponseHeaderDict( + headers = response.HeaderDict( {'content-type': 'text/html', 'status': '200 OK'}) form['environ'] = environ |