mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
cleaner
This commit is contained in:
+2
-4
@@ -165,12 +165,10 @@ def redirect_n_times(n):
|
||||
|
||||
assert n > 0
|
||||
|
||||
n += -1
|
||||
|
||||
if (n == 0):
|
||||
if (n == 1):
|
||||
return redirect('/')
|
||||
|
||||
return redirect('/redirect/{0}'.format(n))
|
||||
return redirect('/redirect/{0}'.format(n-1))
|
||||
|
||||
|
||||
@app.route('/status/<int:code>')
|
||||
|
||||
Reference in New Issue
Block a user