Page MenuHomePhabricator

rpc: Set HTTP Content-Type in bitcoin-cli
ClosedPublic

Authored by PiRK on Nov 2 2021, 11:14.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC32be44adf436: rpc: Set HTTP Content-Type in bitcoin-cli
Summary

We don't set any Content-Type in the client. It is more
consistent with our other JSON-RPC use to set it to application/json.

Note that our server doesn't enforce content types, so it doesn't make a
difference in practice. But it is fairly strange HTTP behavior to not set it.

This came up in #18950.

This is a backport of core#20055

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable