Changeset View
Changeset View
Standalone View
Standalone View
src/rest.cpp
Show First 20 Lines • Show All 461 Lines • ▼ Show 20 Lines | static bool rest_getutxos(Config &config, HTTPRequest *req, | ||||
} | } | ||||
switch (rf) { | switch (rf) { | ||||
case RF_HEX: { | case RF_HEX: { | ||||
// convert hex to bin, continue then with bin part | // convert hex to bin, continue then with bin part | ||||
std::vector<unsigned char> strRequestV = | std::vector<unsigned char> strRequestV = | ||||
ParseHex(strRequestMutable); | ParseHex(strRequestMutable); | ||||
strRequestMutable.assign(strRequestV.begin(), strRequestV.end()); | strRequestMutable.assign(strRequestV.begin(), strRequestV.end()); | ||||
// FALLTHROUGH | |||||
} | } | ||||
case RF_BINARY: { | case RF_BINARY: { | ||||
try { | try { | ||||
// deserialize only if user sent a request | // deserialize only if user sent a request | ||||
if (strRequestMutable.size() > 0) { | if (strRequestMutable.size() > 0) { | ||||
// don't allow sending input over URI and HTTP RAW DATA | // don't allow sending input over URI and HTTP RAW DATA | ||||
if (fInputParsed) { | if (fInputParsed) { | ||||
▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines |