Skip to content

Is the text/plain header truly required? #18950

@trinityXmontoya

Description

@trinityXmontoya

I already asked this on https://bitcoin.stackexchange.com/ and was referred here.

The docs say "RPC HTTP requests must include a Content-Type header set to text/plain" (src: https://bitcoin.org/en/developer-reference#remote-procedure-calls-rpcs). Calls to an RPC endpoint without this header succeed. Either way, the true Content-Type in this case is application/json. ~Every version of the docs published so far specifies this requirement.

Is it safe for me to remove it or could it cause unexpected behavior? I can imagine none. I am happy to open a PR removing this requirement from the docs if it's not needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions