1
0
mirror of https://github.com/httpie/cli.git synced 2026-06-20 11:32:56 +02:00

Fixed --max-redirects

This commit is contained in:
Jakub Roztocil
2016-02-29 14:21:25 +08:00
parent 356e043651
commit e18b609ef7
4 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -17,6 +17,6 @@ class TestRedirects:
assert HTTP_OK in r
def test_max_redirects(self, httpbin):
r = http('--max-redirects=2', '--follow', httpbin.url + '/redirect/3',
r = http('--max-redirects=1', '--follow', httpbin.url + '/redirect/3',
error_exit_ok=True)
assert r.exit_status == ExitStatus.ERROR_TOO_MANY_REDIRECTS