Skip to content

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.

@digitalresistor digitalresistor self-requested a review November 24, 2022 06:55
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