From da07bb6675bede549253c2ce569374b6bef0843c Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Sun, 26 Feb 2012 21:59:34 -0800 Subject: [PATCH] Add POST PUT and DELETE to the status endpoint --- httpbin/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpbin/core.py b/httpbin/core.py index d9a6c9a..9970401 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -167,7 +167,7 @@ def stream_n_messages(n): @app.route('/status/') -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: