Skip to content

Commit

Permalink
Merge #1210: cli tool: add Content-Type application/json
Browse files Browse the repository at this point in the history
Pull request description:

  See Issue #1209
  • Loading branch information
dexX7 committed Mar 19, 2021
2 parents 86ad200 + a3240ad commit 054432b
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 054432b

Please sign in to comment.