Commit a89040b5 authored by Vincent Pelletier's avatar Vincent Pelletier

caucase.wsgi: Missing "method" in path_entry_dict is a server issue.

It would be the sign of a inconsistency in the dispatcher dict.
Do not transform it into a user error (404).
parent ba6e8dfb
......@@ -529,10 +529,8 @@ class Application(object):
except KeyError:
break
del path_item_list[0]
try:
method_dict = path_entry_dict['method']
except KeyError:
raise NotFound
# If this raises, it means the outing dict is inconsistent.
method_dict = path_entry_dict['method']
request_method = environ['REQUEST_METHOD']
try:
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