Skip to content

Commit 64b8027

Browse files
committed
rest.cpp: strip whitespace
1 parent 182686c commit 64b8027

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/rest.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,12 @@ static bool rest_chaininfo(AcceptedConnection* conn,
262262
{
263263
vector<string> params;
264264
const RetFormat rf = ParseDataFormat(params, strURIPart);
265-
265+
266266
switch (rf) {
267267
case RF_JSON: {
268268
Array rpcParams;
269269
Value chainInfoObject = getblockchaininfo(rpcParams, false);
270-
270+
271271
string strJSON = write_string(chainInfoObject, false) + "\n";
272272
conn->stream() << HTTPReply(HTTP_OK, strJSON, fRun) << std::flush;
273273
return true;
@@ -276,7 +276,7 @@ static bool rest_chaininfo(AcceptedConnection* conn,
276276
throw RESTERR(HTTP_NOT_FOUND, "output format not found (available: json)");
277277
}
278278
}
279-
279+
280280
// not reached
281281
return true; // continue to process further HTTP reqs on this cxn
282282
}
@@ -351,9 +351,9 @@ static bool rest_getutxos(AcceptedConnection* conn,
351351

352352
// parse/deserialize input
353353
// input-format = output-format, rest/getutxos/bin requires binary input, gives binary output, ...
354-
354+
355355
string strRequestMutable = strRequest; //convert const string to string for allowing hex to bin converting
356-
356+
357357
switch (rf) {
358358
case RF_HEX: {
359359
// convert hex to bin, continue then with bin part

0 commit comments

Comments
 (0)