Permalink
Browse files

Merge pull request #17 from faulkner/fix-redirects

Pass allow_redirects to request so --allow-redirects works.
  • Loading branch information...
2 parents 860a851 + dd8faec commit 6df9ff67eb71f740d46a1aab12273d41006460ee @jakubroztocil committed Mar 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 httpie/httpie.py
View
@@ -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')

0 comments on commit 6df9ff6

Please sign in to comment.