1
0
mirror of https://github.com/httpie/cli.git synced 2025-06-10 23:57:28 +02:00

Cleanup, CHANGELOG

This commit is contained in:
Jakub Roztocil 2012-08-01 23:51:30 +02:00
parent 52e46bedda
commit e045ca6bd8
3 changed files with 4 additions and 4 deletions

@ -375,6 +375,7 @@ Changelog
* `0.2.7dev`_ * `0.2.7dev`_
* Support for efficient large file downloads. * Support for efficient large file downloads.
* Response body is fetched only when needed (e.g., not with ``--headers``). * Response body is fetched only when needed (e.g., not with ``--headers``).
* Improved content type matching.
* Updated Solarized color scheme. * Updated Solarized color scheme.
* Windows: Added ``--output FILE`` to store output into a file * Windows: Added ``--output FILE`` to store output into a file
(piping results into corrupted data on Windows). (piping results into corrupted data on Windows).

@ -85,7 +85,6 @@ def output_stream(args, env, request, response):
""" """
exchange = []
prettifier = (OutputProcessor(env, pygments_style=args.style) prettifier = (OutputProcessor(env, pygments_style=args.style)
if args.prettify else None) if args.prettify else None)
@ -105,8 +104,8 @@ def output_stream(args, env, request, response):
for chunk in request_iter: for chunk in request_iter:
yield chunk yield chunk
if with_response: if with_request and with_response:
yield b'\n\n\n' yield b'\n\n\n'
if with_response: if with_response:
response_iter = formatted_stream( response_iter = formatted_stream(

@ -58,7 +58,7 @@ class HTTPResponse(HTTPMessage):
"""A `requests.models.Response` wrapper.""" """A `requests.models.Response` wrapper."""
def __iter__(self): def __iter__(self):
mb = 1024 * 1000 mb = 1024 * 1024
return self._orig.iter_content(chunk_size=2 * mb) return self._orig.iter_content(chunk_size=2 * mb)
@property @property