mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
Add POST PUT and DELETE to the status endpoint
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ def stream_n_messages(n):
|
||||
|
||||
|
||||
@app.route('/status/<codes>')
|
||||
def view_status_code(codes):
|
||||
def view_status_code(codes, methods=("GET", "POST", "PUT", "DELETE")):
|
||||
"""Return status code or random status code if more than one are given"""
|
||||
|
||||
if not ',' in codes:
|
||||
|
||||
Reference in New Issue
Block a user