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

Incorect detection of text/csv #488

Open
cupsadarius opened this issue Feb 19, 2024 · 0 comments
Open

Incorect detection of text/csv #488

cupsadarius opened this issue Feb 19, 2024 · 0 comments

Comments

@cupsadarius
Copy link

Attach the file for which the detection is inaccurate
You can use the file sharing site of your choice, just ensure the file will not expire or get deleted.

sample.csv
Expected MIME type
text/csv

Returned MIME type
text/plain; charset=utf-8;

Version of the library you are using
v1.4.3

Output of go version
go version go1.21.6 darwin/amd64

Additional context
Add any other context about the problem here.
with version v1.4.0 the mimetype was correctly detected as text/csv. Version 1.4.3 seems to break it even with mimetype.SetLimit(0)

Alternatively, you can fork the project, commit the file with a failing test and reference the commit in the issue.
25f95acfe333721df1302387b3d87b29299af274

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

1 participant