fixed issue 974
This commit is contained in:
1 parent
87a127c42b
commit
1d825fda76
2 files changed
+2
-2
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.0.8 (2012-09-10 07:40:29) stable
|
Version 2.0.8 (2012-09-10 07:47:49) stable
|
||||||
+1
-1
@@ -88,7 +88,7 @@ class HTTP(BaseException):
|
|||||||
else:
|
else:
|
||||||
status = str(status)
|
status = str(status)
|
||||||
if not regex_status.match(status):
|
if not regex_status.match(status):
|
||||||
status = "500 UNKNOWN ERROR"
|
status = '500 %s' % (defined_status[500])
|
||||||
if not 'Content-Type' in headers:
|
if not 'Content-Type' in headers:
|
||||||
headers['Content-Type'] = 'text/html; charset=UTF-8'
|
headers['Content-Type'] = 'text/html; charset=UTF-8'
|
||||||
body = self.body
|
body = self.body
|
||||||
|
|||||||
Reference in new issue
Block a user