tests: add httpcommon tests and add new file_handler methods (#2712)
Co-authored-by: Mariotaku <mariotaku.lee@gmail.com>
This commit is contained in:
parent
0c0b4c4610
commit
334267807f
8 changed files with 144 additions and 6 deletions
|
|
@ -501,9 +501,7 @@ namespace confighttp {
|
|||
auto url = inputTree.get("url", "");
|
||||
|
||||
const std::string coverdir = platf::appdata().string() + "/covers/";
|
||||
if (!boost::filesystem::exists(coverdir)) {
|
||||
boost::filesystem::create_directories(coverdir);
|
||||
}
|
||||
file_handler::make_directory(coverdir);
|
||||
|
||||
std::basic_string path = coverdir + http::url_escape(key) + ".png";
|
||||
if (!url.empty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue