Skip to content
This repository was archived by the owner on May 17, 2025. It is now read-only.
This repository was archived by the owner on May 17, 2025. It is now read-only.

JSON is not recognised #3

@rickb777

Description

@rickb777

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions