mirror of
https://github.com/httpie/cli.git
synced 2024-11-28 08:38:44 +02:00
Merge pull request #17 from faulkner/fix-redirects
Pass allow_redirects to request so --allow-redirects works.
This commit is contained in:
commit
6df9ff67eb
@ -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