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

Add a condition for properly setting gzip file content-type headers #250

Closed
wants to merge 3 commits into from
Closed

Add a condition for properly setting gzip file content-type headers #250

wants to merge 3 commits into from

Conversation

lukaskremla
Copy link
Contributor

The current Microdot send_file implementation does not properly set the content-type headers for files with the ".gz" extension. I have made a simple conditional to check for the ".gz" extension and remove it before determining the file type from the actual file extension.

@miguelgrinberg
Copy link
Owner

This looks good, thanks!

Would you mind resolving the lint issues and adding a test so that coverate stays at 100%? Thanks again.

@miguelgrinberg
Copy link
Owner

Closing since this is identical to #251

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

Successfully merging this pull request may close these issues.

2 participants