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

Golang mime.TypeByExtension(".tif") Returns Empty in Debian 12 Distroless Images #1502

Open
Atomzwieback opened this issue Jan 23, 2024 · 1 comment

Comments

@Atomzwieback
Copy link

Describe the bug
In Debian 12 Distroless images, the mime.TypeByExtension(".tif") function in Golang is returning an empty string, indicating that the MIME type for .tif files is not being recognized. This behavior is inconsistent with other environments where the function correctly returns the MIME type for .tif files.

To Reproduce
Steps to reproduce the behavior:

Use a Docker container with Debian 12 Distroless image.
Run a Golang application that includes the mime.TypeByExtension(".tif") function.
Observe the output, noting that the function returns an empty string instead of the expected MIME type for .tif files.

Expected behavior
The expected behavior is for mime.TypeByExtension(".tif") to return the correct MIME type for .tif files, as it does in other environments.

Additional context
This issue is critical for applications that rely on MIME type detection, particularly for processing .tif files. It seems to be specific to Debian 12 Distroless images, as the same code functions correctly in other environments. Any insights or solutions to resolve this inconsistency would be greatly appreciated.

@loosebazooka
Copy link
Member

Did it work on debian 11?

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

No branches or pull requests

2 participants