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

Fix sendfile.py example #2887

Merged
merged 1 commit into from
Aug 10, 2024
Merged

Fix sendfile.py example #2887

merged 1 commit into from
Aug 10, 2024

Conversation

python273
Copy link
Contributor

because of @validator decorator, the fn returns wsgiref.validate.IteratorWrapper instead of gunicorn.http.wsgi.FileWrapper which breaks sendfile

if isinstance(respiter, environ['wsgi.file_wrapper']):
resp.write_file(respiter)

@benoitc benoitc added the Deploy label May 10, 2023
@benoitc benoitc merged commit 5aeb065 into benoitc:master Aug 10, 2024
@benoitc
Copy link
Owner

benoitc commented Aug 10, 2024

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants