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
application/json is widely used in REST APIs, but isn't detected by mimesniffer, nor by the default net/http sniffer.
This would be a useful addition for many people.
Correct sniffing should determine whether the content is valid JSON. If it isn't then the result would be "text/plain". This can be done using encoding/json via the json.Valid function.
The text was updated successfully, but these errors were encountered:
application/json
is widely used in REST APIs, but isn't detected by mimesniffer, nor by the default net/http sniffer.This would be a useful addition for many people.
Correct sniffing should determine whether the content is valid JSON. If it isn't then the result would be "text/plain". This can be done using
encoding/json
via the json.Valid function.The text was updated successfully, but these errors were encountered: