mirror of
https://github.com/httpie/cli.git
synced 2024-11-24 08:22:22 +02:00
Pass allow_redirects to request so --allow-redirects works.
This commit is contained in:
parent
860a851a4b
commit
dd8faecbf7
@ -152,6 +152,7 @@ def main(args=None,
|
|||||||
auth=(args.auth.key, args.auth.value) if args.auth else None,
|
auth=(args.auth.key, args.auth.value) if args.auth else None,
|
||||||
proxies=dict((p.key, p.value) for p in args.proxy),
|
proxies=dict((p.key, p.value) for p in args.proxy),
|
||||||
files=dict((os.path.basename(f.name), f) for f in args.file),
|
files=dict((os.path.basename(f.name), f) for f in args.file),
|
||||||
|
allow_redirects=args.allow_redirects,
|
||||||
)
|
)
|
||||||
except (KeyboardInterrupt, SystemExit) as e:
|
except (KeyboardInterrupt, SystemExit) as e:
|
||||||
sys.stderr.write('\n')
|
sys.stderr.write('\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user