aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2016-09-22 09:58:13 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2016-10-19 14:47:27 +0200
commite7156ad61be2fe935fdb64e9d0e877fa0e9f7f9e (patch)
tree19dcb95789fea3e6d168a7b2e1ecb7d66a5e006f /src/rpc
parent69d1c25768a8649bfc7eb8e9c35b8fe9874ac9fc (diff)
downloadbitcoin-e7156ad61be2fe935fdb64e9d0e877fa0e9f7f9e.tar.xz
[RPC] pass HTTP basic authentication username to the JSONRequest object
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/server.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h
index d8b5097035..c59886222c 100644
--- a/src/rpc/server.h
+++ b/src/rpc/server.h
@@ -49,8 +49,9 @@ public:
UniValue params;
bool fHelp;
std::string URI;
+ std::string authUser;
- JSONRPCRequest() { id = NullUniValue; }
+ JSONRPCRequest() { id = NullUniValue; params = NullUniValue; fHelp = false; }
void parse(const UniValue& valRequest);
};