From e7156ad61be2fe935fdb64e9d0e877fa0e9f7f9e Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Thu, 22 Sep 2016 09:58:13 +0200 Subject: [RPC] pass HTTP basic authentication username to the JSONRequest object --- src/rest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rest.cpp') diff --git a/src/rest.cpp b/src/rest.cpp index 707dfe698..b8b542062 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"); -- cgit v1.2.3