This commit is contained in:
Jakub Roztocil 2012-07-30 14:23:22 +02:00
parent a5b98818c8
commit 8905b4fc72
4 changed files with 5 additions and 4 deletions

View File

@ -373,6 +373,7 @@ Changelog
=========
* `0.2.7dev`_
* Updated Solarized color scheme.
* Windows: Added ``--output FILE`` to store output into a file
(piping results into corrupted data on Windows).
* Proper handling of binary requests and responses.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 444 KiB

After

Width:  |  Height:  |  Size: 446 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 KiB

View File

@ -28,7 +28,7 @@ BINARY_SUPPRESSED_NOTICE = (
def format(msg, prettifier=None, with_headers=True, with_body=True,
env=Environment()):
"""Return a UTF8-encoded representation of a `models.HTTPMessage`.
"""Return `bytes` representation of a `models.HTTPMessage`.
Sometimes the body contains binary data so we always return `bytes`.
@ -36,9 +36,9 @@ def format(msg, prettifier=None, with_headers=True, with_body=True,
body is not included in the output and is replaced with notice.
Generally, when the `stdout` is redirected, the output matches the actual
message as much as possible. When `--pretty` set (or implied),
or when the output is a terminal, then we prefer readability over
precision.
message as much as possible (formatting and character encoding-wise).
When `--pretty` is set (or implied), or when the output is a terminal,
then we prefer readability over precision.
"""