From 4a5e87e918133436300fd1bfc0b56e20ac2ec5b1 Mon Sep 17 00:00:00 2001 From: Severin Leonhardt Date: Thu, 14 Jun 2018 15:22:07 +0200 Subject: [PATCH] Support more HTTP methods for /delay --- httpbin/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpbin/core.py b/httpbin/core.py index 0a00a828..e6d53ded 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -1072,7 +1072,7 @@ def digest_auth(qop=None, user='user', passwd='passwd', algorithm='MD5', stale_a return response -@app.route('/delay/') +@app.route('/delay/', methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'TRACE']) def delay_response(delay): """"Returns a delayed response (max of 10 seconds). ---