Compatibility with Requests 0.13.6.

This commit is contained in:
Jakub Roztocil committed 2012-08-07 00:07:04 +02:00
1 parent 381e60f9d8
commit dd2c89412c
3 files changed
+10 -5

No files matched your search

+2 -1
View File
@@ -59,6 +59,7 @@ def get_response(args):
}[args.auth_type](args.auth.key, args.auth.value)
return requests.request(
prefetch=False,
method=args.method.lower(),
url=args.url,
headers=args.headers,
@@ -97,7 +98,7 @@ def main(args=sys.argv[1:], env=Environment()):
def error(msg, *args):
msg = msg % args
env.stderr.write('http: error: %s\n' % msg)
env.stderr.write('\nhttp: error: %s\n' % msg)
debug = '--debug' in args
status = EXIT.OK