Commit f5472c40 authored by Vincent Pelletier's avatar Vincent Pelletier

Revert "wsgi: "method" is a required key of any "path_entry"."

Except it is not present on caucase root object.
This reverts commit b26eeb38.
parent d7ee5f56
...@@ -254,7 +254,10 @@ class Application(object): ...@@ -254,7 +254,10 @@ class Application(object):
except KeyError: except KeyError:
break break
del path_item_list[0] del path_item_list[0]
try:
method_dict = path_entry_dict['method'] method_dict = path_entry_dict['method']
except KeyError:
raise NotFound
request_method = environ['REQUEST_METHOD'] request_method = environ['REQUEST_METHOD']
try: try:
action_dict = method_dict[request_method] action_dict = method_dict[request_method]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment