Skip to content

Commit

Permalink
method defaults to GET and POST now
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed May 17, 2024
1 parent 6a05645 commit d9bbd8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py4web/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ def register_route(app_name, rule, kwargs, func):
dec_func = action.catch_errors(app_name, func)
bottle.route(rule, **kwargs)(dec_func)
filename = module2filename(func.__module__)
methods = kwargs.get("method", ["GET"])
methods = kwargs.get("method", ["GET", "POST"])
if isinstance(methods, str):
methods = [methods]
for method in methods:
Expand Down

0 comments on commit d9bbd8c

Please sign in to comment.