From 6f64b437b7228151b89c45c40e0ec0c2d99a78c4 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Thu, 7 Mar 2013 12:42:29 -0300 Subject: [PATCH] Fixed streaming (closes #133) --- httpie/output.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httpie/output.py b/httpie/output.py index 63a82df7..5fdde0f7 100644 --- a/httpie/output.py +++ b/httpie/output.py @@ -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)