summaryrefslogtreecommitdiff
path: root/paste/httpexceptions.py
diff options
context:
space:
mode:
authorcce <devnull@localhost>2006-09-11 19:32:08 +0000
committercce <devnull@localhost>2006-09-11 19:32:08 +0000
commit9e4f83947cdb42dffdff973d0b9b12a2f775e3b1 (patch)
treea5db3694893fbb607b2ab1e79ff84871357823eb /paste/httpexceptions.py
parent4e668bf78f1974bb62f036404b3e2bbf20c9cbed (diff)
downloadpaste-9e4f83947cdb42dffdff973d0b9b12a2f775e3b1.tar.gz
Fixing a bug when unicode is used in exceptions, the
*_headers functions can be called directly w/o the module name prefix.
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r--paste/httpexceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py
index 095fc9f..7d3c95f 100644
--- a/paste/httpexceptions.py
+++ b/paste/httpexceptions.py
@@ -240,9 +240,9 @@ class HTTPException(Exception):
if isinstance(content, unicode):
content = content.encode('utf8')
cur_content_type = (
- response.header_value(headers, 'content-type')
+ header_value(headers, 'content-type')
or 'text/html')
- reponse.replace_header(
+ replace_header(
headers, 'content-type',
cur_content_type + '; charset=utf8')
start_response('%s %s' % (self.code, self.title),