mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Fix printing redirected prepared request in verbose mode (#1088)
This commit is contained in:
1 parent
1470ca0c77
commit
2d55c01c7e
2 files changed
+20
-3
No files matched your search
+3
-3
@@ -177,10 +177,10 @@ def program(args: argparse.Namespace, env: Environment) -> ExitStatus:
|
||||
if is_request:
|
||||
if not initial_request:
|
||||
initial_request = message
|
||||
if with_body:
|
||||
is_streamed_upload = not isinstance(message.body, (str, bytes))
|
||||
if with_body:
|
||||
do_write_body = not is_streamed_upload
|
||||
force_separator = is_streamed_upload and env.stdout_isatty
|
||||
do_write_body = not is_streamed_upload
|
||||
force_separator = is_streamed_upload and env.stdout_isatty
|
||||
else:
|
||||
final_response = message
|
||||
if args.check_status or downloader:
|
||||
|
||||
Reference in new issue
Block a user