Merge 6a135fbe5b into merged_master (Bitcoin PR #15638)

This commit is contained in:
Andrew Poelstra 2020-10-28 03:15:23 +00:00
commit a8581ea138
72 changed files with 1317 additions and 1008 deletions

View file

@ -656,15 +656,3 @@ void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch)
pathHandlers.erase(i);
}
}
std::string urlDecode(const std::string &urlEncoded) {
std::string res;
if (!urlEncoded.empty()) {
char *decoded = evhttp_uridecode(urlEncoded.c_str(), false, nullptr);
if (decoded) {
res = std::string(decoded);
free(decoded);
}
}
return res;
}