Skip to content

Commit

Permalink
Allow PURGE method
Browse files Browse the repository at this point in the history
  • Loading branch information
wosc committed Sep 14, 2023
1 parent c7ea1d3 commit 7297004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpbin/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ def view_head():
return response


@app.route("/anything", methods=["GET", "POST", "PUT", "DELETE", "PATCH", "TRACE"])
@app.route("/anything", methods=["GET", "POST", "PUT", "DELETE", "PATCH", "TRACE", "PURGE"])
@app.route(
"/anything/<path:anything>",
methods=["GET", "POST", "PUT", "DELETE", "PATCH", "TRACE"],
methods=["GET", "POST", "PUT", "DELETE", "PATCH", "TRACE", "PURGE"],
)
def view_anything(anything=None):
"""Returns anything passed in request data.
Expand Down

0 comments on commit 7297004

Please sign in to comment.