mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Compatibility with Requests 0.13.6.
This commit is contained in:
1 parent
381e60f9d8
commit
dd2c89412c
3 files changed
+10
-5
No files matched your search
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user