Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for StreamingHTTPResponse #7

Open
acdha opened this issue Aug 28, 2018 · 0 comments
Open

Support for StreamingHTTPResponse #7

acdha opened this issue Aug 28, 2018 · 0 comments

Comments

@acdha
Copy link

acdha commented Aug 28, 2018

I tried compress on a simple app which has one view using a streaming response and that gets the following exception:

  File "VENV/lib/python3.7/site-packages/sanic_compress/__init__.py", line 31, in _compress_response
    content_length = len(response.body)
AttributeError: 'StreamingHTTPResponse' object has no attribute 'body'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant