|
@@ -1,10 +1,10 @@
|
|
|
|
|
|
def parse_request_method_name(method):
|
|
|
- if method in ["POST", "post"]:
|
|
|
+ if method in ["POST", "post", "Post", "add", "ADD", "Add"]:
|
|
|
return "add"
|
|
|
- if method in ["GET", "get"]:
|
|
|
+ if method in ["GET", "get", "Get", "view", "VIEW", "View"]:
|
|
|
return "view"
|
|
|
- if method in ["PUT", "put"]:
|
|
|
+ if method in ["PUT", "put", "Put", "change", "CHANGE", "Change"]:
|
|
|
return "change"
|
|
|
- if method in ["DELETE", "delete"]:
|
|
|
+ if method in ["DELETE", "delete", "Delete"]:
|
|
|
return "delete"
|