-
-
Notifications
You must be signed in to change notification settings - Fork 765
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
configure connexion to gzip its responses? #620
Comments
Can you post a snippet on how you tried to use |
Yup! |
Hey @drafter250 , I'm going to close out this ticket. Please re-open if you have more to add! |
Description
I have a client that expects all api responses to be gzipped.
simply adding "Content-Encoding": "gzip" to response headers doesn't actually signal flask or connexion to gzip the response.
apparently this is usually left up to the production webserver like nginx.
I also tried installing flask-compress to modify the app instance to gzip it's responses automatically. but got various errors about missing attributes.
Expected behaviour
For Testing is there a relatively simple way to get connexion to gzip its responses?
Actual behaviour
Steps to reproduce
Additional info:
Output of the commands:
python --version
3.6.5pip show connexion | grep "^Version\:"
The text was updated successfully, but these errors were encountered: