mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
include #include <boost/algorithm/string.hpp>
This commit is contained in:
parent
93c3013366
commit
6724398b82
2 changed files with 6 additions and 6 deletions
|
@ -1010,18 +1010,18 @@ parse_crow_post_data(const string& req_body)
|
|||
bool result = url_decode(req_body, tmp);
|
||||
if (result)
|
||||
{
|
||||
boost::algorithm::split(vec, tmp, [](char x) {return x == '&'; });
|
||||
boost::algorithm::split(vec, tmp,
|
||||
[](char x) {return x == '&';
|
||||
});
|
||||
|
||||
for(auto &it : vec)
|
||||
{
|
||||
auto pos = it.find("=");
|
||||
|
||||
if (pos != string::npos)
|
||||
{
|
||||
body[it.substr(0, pos)] = it.substr(pos + 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return body;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
|
Loading…
Reference in a new issue