Skip to content

Add application/json Content-Type to requests #75

@MikeNice-IB

Description

@MikeNice-IB

For device request() and fetch() calls that include a JSON body in the request, it would be better to explicitly add a Content-Type of 'application/json' to the headers so that client libraries can automatically validate the request for properly formed JSON. Otherwise browsers such as Chrome or Edge send the request as text/plain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions