You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-08-10 22:42:05 +02:00
Improved request formatting.
This commit is contained in:
@@ -39,9 +39,9 @@ def format_http_message(message, prettifier=None,
|
||||
else:
|
||||
bits.append(message.line)
|
||||
bits.append(message.headers)
|
||||
if with_body:
|
||||
if with_body and message.body:
|
||||
bits.append('\n')
|
||||
if with_body:
|
||||
if with_body and message.body:
|
||||
if prettifier and message.content_type:
|
||||
bits.append(prettifier.body(message.body, message.content_type))
|
||||
else:
|
||||
|
Reference in New Issue
Block a user