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

Bad detection xml if doctype is present #250

Open
nacimgoura opened this issue Feb 9, 2022 · 0 comments
Open

Bad detection xml if doctype is present #250

nacimgoura opened this issue Feb 9, 2022 · 0 comments

Comments

@nacimgoura
Copy link

nacimgoura commented Feb 9, 2022

Attach the file for which the detection is inaccurate
https://www.grosfichiers.com/bLp8VUdxbiN

Expected MIME type
text/xml; charset=utf-8 and .xml

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

Version of the library you are using
github.com/gabriel-vasile/mimetype v1.4.0
v1.4.0

Output of go version
go version go1.17.6 linux/amd64

Additional context
Bad detection of XML when it has a doctype and not the tag

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