diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-09-22 09:58:13 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-10-19 14:47:27 +0200 |
commit | e7156ad61be2fe935fdb64e9d0e877fa0e9f7f9e (patch) | |
tree | 19dcb95789fea3e6d168a7b2e1ecb7d66a5e006f /src/rest.cpp | |
parent | 69d1c25768a8649bfc7eb8e9c35b8fe9874ac9fc (diff) |
[RPC] pass HTTP basic authentication username to the JSONRequest object
Diffstat (limited to 'src/rest.cpp')
-rw-r--r-- | src/rest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rest.cpp b/src/rest.cpp index 707dfe6987..b8b5420626 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -286,6 +286,7 @@ static bool rest_chaininfo(HTTPRequest* req, const std::string& strURIPart) switch (rf) { case RF_JSON: { JSONRPCRequest jsonRequest; + jsonRequest.params = UniValue(UniValue::VARR); UniValue chainInfoObject = getblockchaininfo(jsonRequest); string strJSON = chainInfoObject.write() + "\n"; req->WriteHeader("Content-Type", "application/json"); |