import collections
-import http.cookie
+import http.cookies
import json
import urllib.parse
content_length = 0
try:
- cookie = http.cookie.SimpleCookie(env.get('HTTP_COOKIE'))
+ cookie = http.cookies.SimpleCookie(env.get('HTTP_COOKIE'))
except:
- cookie = http.cookie.SimpleCookie()
+ cookie = http.cookies.SimpleCookie()
try:
handlers[method] = kwargs.pop(method)
method_not_allowed_handler = kwargs.pop(
- method_not_allowed,
+ 'method_not_allowed',
default_method_not_allowed_handler,
)