You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attach the file for which the detection is inaccurate 11.txt
Expected MIME type
txt
Returned MIME type
json
Version of the library you are using
the semver version or the hash of the commit
1.3.0 Output of go version
...
1.16.6 Additional context
Add any other context about the problem here.
Reproduсed with any txt file that contents just digits.
The text was updated successfully, but these errors were encountered:
It reproduces with a single string too.
I guess the fix is to return json just for files containing a json object or a json array.
Just 1234 or "abcd" should return txt.
This would be inline with that file --mime 11.txt does too.
Attach the file for which the detection is inaccurate
11.txt
Expected MIME type
txt
Returned MIME type
json
Version of the library you are using
the semver version or the hash of the commit
1.3.0
Output of
go version
...
1.16.6
Additional context
Add any other context about the problem here.
Reproduсed with any txt file that contents just digits.
The text was updated successfully, but these errors were encountered: