mirror of
https://github.com/httpie/cli.git
synced 2025-06-25 12:01:41 +02:00
Implemented --max-redirects option
Added argument to argparse, changed client so that it uses a new requests Session() with the number of redirects and a single test to show the setting works.
This commit is contained in:
parent
e2235e56dc
commit
dc1371d4d6
@ -380,6 +380,15 @@ sessions.add_argument(
|
|||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
sessions.add_argument(
|
||||||
|
'--max-redirects',
|
||||||
|
dest='redirects',
|
||||||
|
default=30,
|
||||||
|
help="""
|
||||||
|
By default, requests has a limit of 30 redirects.
|
||||||
|
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# Authentication
|
# Authentication
|
||||||
|
Loading…
x
Reference in New Issue
Block a user