JuliaWeb / HTTP.jl

HTTP for Julia
https://juliaweb.github.io/HTTP.jl/stable/
Other
626 stars 177 forks source link

`HTTP.sniff` for strings which starts a number. #1084

Open AtsushiSakai opened 11 months ago

AtsushiSakai commented 11 months ago

In this example:

In [5]: HTTP.sniff("A2")
"text/plain; charset=utf-8"

In [6]: HTTP.sniff("2A")
"application/json; charset=utf-8"

The first example makes sense, but I think the second one should not be categorized as JSON.

Is it expected?