mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Fixed tests.
This commit is contained in:
1 parent
b44bc0928f
commit
8e170b059c
3 files changed
+11
-6
No files matched your search
+5
-3
@@ -61,7 +61,8 @@ def decode_args(args, stdin_encoding):
|
||||
|
||||
"""
|
||||
return [
|
||||
arg.decode(stdin_encoding) if type(arg) == bytes else arg
|
||||
arg.decode(stdin_encoding)
|
||||
if type(arg) == bytes else arg
|
||||
for arg in args
|
||||
]
|
||||
|
||||
@@ -72,10 +73,11 @@ def main(args=sys.argv[1:], env=Environment()):
|
||||
Return exit status code.
|
||||
|
||||
"""
|
||||
from httpie.cli import parser
|
||||
|
||||
args = decode_args(args, env.stdin_encoding)
|
||||
plugin_manager.load_installed_plugins()
|
||||
|
||||
from httpie.cli import parser
|
||||
|
||||
if env.config.default_options:
|
||||
args = env.config.default_options + args
|
||||
|
||||
|
||||
Reference in new issue
Block a user