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
{{ message }}
This repository was archived by the owner on May 17, 2025. It is now read-only.
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.
application/jsonis 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/jsonvia the json.Valid function.