Merge pull request #17 from faulkner/fix-redirects

Pass allow_redirects to request so --allow-redirects works.
This commit is contained in:
Jakub Roztocil 2012-03-03 15:36:43 -08:00
commit 6df9ff67eb

View File

@ -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')