Skip to content

Commit

Permalink
cli tool: add Content-Type application/json
Browse files Browse the repository at this point in the history
See Issue #1209
  • Loading branch information
msgilligan committed Mar 17, 2021
1 parent 86ad200 commit a3240ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bitcoin-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ static UniValue CallRPC(BaseRequestHandler *rh, const std::string& strMethod, co
assert(output_headers);
evhttp_add_header(output_headers, "Host", host.c_str());
evhttp_add_header(output_headers, "Connection", "close");
evhttp_add_header(output_headers, "Content-Type", "application/json");
evhttp_add_header(output_headers, "Authorization", (std::string("Basic ") + EncodeBase64(strRPCUserColonPass)).c_str());

// Attach request data
Expand Down

0 comments on commit a3240ad

Please sign in to comment.