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

webob.static.FileApp responds with different content-types for Windows and Linux #440

Open
wants to merge 1 commit into
base: 1.8-branch
Choose a base branch
from

Conversation

omit66
Copy link

@omit66 omit66 commented Nov 3, 2022

When using FileApp the content-type of the response may differ for Windows and Linux.

I tested it using FileApp("test.map").kw.

Issue:
The mimetypes module is used to determine the mimetype / content-type of the FileApp.
mimetypes._winreg is set to None to prevent loading mimetypes from Windows registry.
Since python/cpython@bbf2fb6 the mimetypes module uses the winapi and winreg to load the mimetypes from the registry.

You probably want to set _mimetypes_read_windows_registry = None as well.

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.

1 participant