fixed to(env={}), thanks Anthony

This commit is contained in:
mdipierro
2012-08-29 10:05:51 -05:00
parent 9861a33c72
commit ceb48bd472
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.1 (2012-08-29 08:22:30) rc4
Version 2.00.1 (2012-08-29 10:05:45) rc4
+2 -1
View File
@@ -76,7 +76,8 @@ class HTTP(BaseException):
self.headers['Set-Cookie'] = [
str(cookie)[11:] for cookie in cookies.values()]
def to(self, responder, env={}):
def to(self, responder, env=None):
env = env or {}
status = self.status
headers = self.headers
if status in defined_status: