@@ -90,8 +90,8 @@ static bool ParseHashStr(const string& strReq, uint256& v)
90
90
}
91
91
92
92
static bool rest_headers (AcceptedConnection* conn,
93
- string& strReq,
94
- map<string, string>& mapHeaders,
93
+ const std:: string& strReq,
94
+ const std:: map<std:: string, std:: string>& mapHeaders,
95
95
bool fRun )
96
96
{
97
97
vector<string> params;
@@ -153,8 +153,8 @@ static bool rest_headers(AcceptedConnection* conn,
153
153
}
154
154
155
155
static bool rest_block (AcceptedConnection* conn,
156
- string& strReq,
157
- map<string, string>& mapHeaders,
156
+ const std:: string& strReq,
157
+ const std:: map<std:: string, std:: string>& mapHeaders,
158
158
bool fRun ,
159
159
bool showTxDetails)
160
160
{
@@ -211,24 +211,24 @@ static bool rest_block(AcceptedConnection* conn,
211
211
}
212
212
213
213
static bool rest_block_extended (AcceptedConnection* conn,
214
- string& strReq,
215
- map<string, string>& mapHeaders,
214
+ const std:: string& strReq,
215
+ const std:: map<std:: string, std:: string>& mapHeaders,
216
216
bool fRun )
217
217
{
218
218
return rest_block (conn, strReq, mapHeaders, fRun , true );
219
219
}
220
220
221
221
static bool rest_block_notxdetails (AcceptedConnection* conn,
222
- string& strReq,
223
- map<string, string>& mapHeaders,
222
+ const std:: string& strReq,
223
+ const std:: map<std:: string, std:: string>& mapHeaders,
224
224
bool fRun )
225
225
{
226
226
return rest_block (conn, strReq, mapHeaders, fRun , false );
227
227
}
228
228
229
229
static bool rest_tx (AcceptedConnection* conn,
230
- string& strReq,
231
- map<string, string>& mapHeaders,
230
+ const std:: string& strReq,
231
+ const std:: map<std:: string, std:: string>& mapHeaders,
232
232
bool fRun )
233
233
{
234
234
vector<string> params;
@@ -280,8 +280,8 @@ static bool rest_tx(AcceptedConnection* conn,
280
280
static const struct {
281
281
const char * prefix;
282
282
bool (*handler)(AcceptedConnection* conn,
283
- string& strURI,
284
- map<string, string>& mapHeaders,
283
+ const std:: string& strURI,
284
+ const std:: map<std:: string, std:: string>& mapHeaders,
285
285
bool fRun );
286
286
} uri_prefixes[] = {
287
287
{" /rest/tx/" , rest_tx},
@@ -291,8 +291,8 @@ static const struct {
291
291
};
292
292
293
293
bool HTTPReq_REST (AcceptedConnection* conn,
294
- string& strURI,
295
- map<string, string>& mapHeaders,
294
+ const std:: string& strURI,
295
+ const std:: map<std:: string, std:: string>& mapHeaders,
296
296
bool fRun )
297
297
{
298
298
try {
0 commit comments