projects
/
fwx
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
172cdc8
)
Fix exception from improperly imported http.cookies
author
David Kerkeslager
<kerkeslager@gmail.com>
Thu, 28 Nov 2019 18:36:49 +0000
(13:36 -0500)
committer
David Kerkeslager
<kerkeslager@gmail.com>
Thu, 28 Nov 2019 18:36:49 +0000
(13:36 -0500)
phial.py
patch
|
blob
|
history
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,
)