HTTP.jl icon indicating copy to clipboard operation
HTTP.jl copied to clipboard

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

Open AtsushiSakai opened this issue 11 months ago • 0 comments

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?

  • Julia 1.9.2
  • HTTP.jl 1.9.14

AtsushiSakai avatar Jul 30 '23 10:07 AtsushiSakai