From 510e3df4c84916f4d5f9c86e1d675f8cc96ad733 Mon Sep 17 00:00:00 2001 From: hydromelvictor Date: Mon, 15 Jan 2024 15:59:30 +0000 Subject: [PATCH] Trim trailing empty lines from CLI output #1547 --- httpie/output/writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpie/output/writer.py b/httpie/output/writer.py index 4a2949bce2..7085ebacd0 100644 --- a/httpie/output/writer.py +++ b/httpie/output/writer.py @@ -21,7 +21,7 @@ MESSAGE_SEPARATOR = '\n\n' -MESSAGE_SEPARATOR_BYTES = MESSAGE_SEPARATOR.encode() +MESSAGE_SEPARATOR_BYTES = (MESSAGE_SEPARATOR.encode()).rstrip() def write_message(