From dd8faecbf7fd82a8e8612f67e3b2a545d790d910 Mon Sep 17 00:00:00 2001 From: Chris Faulkner Date: Sat, 3 Mar 2012 11:54:53 -0800 Subject: [PATCH] Pass allow_redirects to request so --allow-redirects works. --- httpie/httpie.py | 1 + 1 file changed, 1 insertion(+) diff --git a/httpie/httpie.py b/httpie/httpie.py index 4fec8808..ea20c2c0 100755 --- a/httpie/httpie.py +++ b/httpie/httpie.py @@ -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')