Fix printing redirected prepared request in verbose mode (#1088)

This commit is contained in:
Mickaël Schoentgen authored and GitHub committed 2021-06-15 13:39:46 +02:00
1 parent 1470ca0c77
commit 2d55c01c7e
2 files changed
+20 -3

No files matched your search

+3 -3
View File
@@ -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: