Open adamzapasnik opened 2 years ago
Seeing something similar with HTML data in CSV:
Marcel::VERSION
# => "1.0.2"
string = StringIO.new('a,b,c,d,<html><u>category</u>:description</html>')
Marcel::MimeType.for(string, name: "test.csv")
# => "text/html"
Hello, I've noticed that json files with
html
content are reported astext/html
, which isn't correct, is it?. Accidentally, I tested also against v0.3.3 and it reported it correctly asapplication/json
, so one could say it's a regression?I'm raising this issue, but not sure if it's fixable or if it's even a bug? 🙈
output for 1.0.2:
output for 0.3.3
Let me know if you need help with this 😅