projects
/
fwx
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix exception from improperly imported http.cookies
[fwx]
/
phial.py
diff --git
a/phial.py
b/phial.py
index
5d083d3
..
411c077
100644
(file)
--- a/
phial.py
+++ b/
phial.py
@@
-1,5
+1,5
@@
import collections
import collections
-import http.cookie
+import http.cookie
s
import json
import urllib.parse
import json
import urllib.parse
@@
-49,9
+49,9
@@
class Request(_Request):
content_length = 0
try:
content_length = 0
try:
- cookie = http.cookie.SimpleCookie(env.get('HTTP_COOKIE'))
+ cookie = http.cookie
s
.SimpleCookie(env.get('HTTP_COOKIE'))
except:
except:
- cookie = http.cookie.SimpleCookie()
+ cookie = http.cookie
s
.SimpleCookie()
try:
try:
@@
-218,7
+218,7
@@
def route_on_method(**kwargs):
handlers[method] = kwargs.pop(method)
method_not_allowed_handler = kwargs.pop(
handlers[method] = kwargs.pop(method)
method_not_allowed_handler = kwargs.pop(
-
method_not_allowed
,
+
'method_not_allowed'
,
default_method_not_allowed_handler,
)
default_method_not_allowed_handler,
)