Commit b26eeb38 authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Vincent Pelletier

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

parent 09d9d7e5
...@@ -254,10 +254,7 @@ class Application(object): ...@@ -254,10 +254,7 @@ 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