1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-28 08:38:44 +02:00
This commit is contained in:
Jakub Roztocil 2016-03-02 01:02:11 +08:00
parent d4067fcb6d
commit 7fd46e0b0d

View File

@ -189,7 +189,7 @@ def http(*args, **kwargs):
if '--debug' not in args:
if '--traceback' not in args:
extra_args.append('--traceback')
if '--timeout' not in ' '.join(args):
if not any('--timeout' in arg for arg in args):
extra_args.append('--timeout=3')
args = extra_args + args