Not a bug.

chunk_size applies when you are returning a file-like object that
needs to be streamed. If you return a string, it is not streamed.

Massimo



On Nov 18, 3:04 pm, Clayton <[email protected]> wrote:
> The chunk_size seems to be ignored in response.stream
>
>     def stream(
>         self,
>         stream,
>         chunk_size = DEFAULT_CHUNK_SIZE,
>         request=None,
>         ):
>         """
>         if a controller function::
>
>             return response.stream(file, 100)
>
>         the file content will be streamed at 100 bytes at the time
>         """
>
>         if isinstance(stream, (str, unicode)):
>             stream_file_or_304_or_206(stream, request=request,
>                                       headers=self.headers) <<<< NOT
> PASSED IN TO stream_file_or_304_206!!
>
> Thanks,
>
> Clayton

Reply via email to