forked from extern/httpie-cli
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,
|
||||
proxies=dict((p.key, p.value) for p in args.proxy),
|
||||
files=dict((os.path.basename(f.name), f) for f in args.file),
|
||||
allow_redirects=args.allow_redirects,
|
||||
)
|
||||
except (KeyboardInterrupt, SystemExit) as e:
|
||||
sys.stderr.write('\n')
|
||||
|
Loading…
Reference in New Issue
Block a user