1
0
mirror of https://github.com/httpie/cli.git synced 2026-04-24 19:53:55 +02:00

Fixed streaming (closes #133)

This commit is contained in:
Jakub Roztocil
2013-03-07 12:42:29 -03:00
parent 7774eac3df
commit 6f64b437b7
+3 -3
View File
@@ -191,7 +191,7 @@ class RawStream(BaseStream):
"""The message is streamed in chunks with no processing."""
CHUNK_SIZE = 1024 * 100
CHUNK_SIZE_BY_LINE = 1024 * 5
CHUNK_SIZE_BY_LINE = 1
def __init__(self, chunk_size=CHUNK_SIZE, **kwargs):
super(RawStream, self).__init__(**kwargs)
@@ -209,7 +209,7 @@ class EncodedStream(BaseStream):
is suppressed. The body is always streamed by line.
"""
CHUNK_SIZE = 1024 * 5
CHUNK_SIZE = 1
def __init__(self, env=Environment(), **kwargs):
@@ -245,7 +245,7 @@ class PrettyStream(EncodedStream):
"""
CHUNK_SIZE = 1024 * 5
CHUNK_SIZE = 1
def __init__(self, processor, **kwargs):
super(PrettyStream, self).__init__(**kwargs)