Skip to content

Add application/json Content-Type to requests #75

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    End Date

    None yet

    Complexity

    None yet

    Start Date

    None yet

    Original Estimate

    None yet

    Time Tracking

    None yet

    Resolved By

    None yet

    Story Points

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions