fixed to(env={}), thanks Anthony
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user