mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 15:53:13 +01:00
Cleanup, CHANGELOG
This commit is contained in:
parent
52e46bedda
commit
e045ca6bd8
@ -375,6 +375,7 @@ Changelog
|
||||
* `0.2.7dev`_
|
||||
* Support for efficient large file downloads.
|
||||
* Response body is fetched only when needed (e.g., not with ``--headers``).
|
||||
* Improved content type matching.
|
||||
* Updated Solarized color scheme.
|
||||
* Windows: Added ``--output FILE`` to store output into a file
|
||||
(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)
|
||||
if args.prettify else None)
|
||||
|
||||
@ -105,8 +104,8 @@ def output_stream(args, env, request, response):
|
||||
for chunk in request_iter:
|
||||
yield chunk
|
||||
|
||||
if with_response:
|
||||
yield b'\n\n\n'
|
||||
if with_request and with_response:
|
||||
yield b'\n\n\n'
|
||||
|
||||
if with_response:
|
||||
response_iter = formatted_stream(
|
||||
|
@ -58,7 +58,7 @@ class HTTPResponse(HTTPMessage):
|
||||
"""A `requests.models.Response` wrapper."""
|
||||
|
||||
def __iter__(self):
|
||||
mb = 1024 * 1000
|
||||
mb = 1024 * 1024
|
||||
return self._orig.iter_content(chunk_size=2 * mb)
|
||||
|
||||
@property
|
||||
|
Loading…
Reference in New Issue
Block a user