mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
Converted delay parameter to float from unicode
This commit is contained in:
+1
-1
@@ -441,7 +441,7 @@ def digest_auth(qop=None, user='user', passwd='passwd'):
|
||||
@app.route('/delay/<delay>')
|
||||
def delay_response(delay):
|
||||
"""Returns a delayed response"""
|
||||
delay = min(delay, 10)
|
||||
delay = min(float(delay), 10)
|
||||
|
||||
time.sleep(delay)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user