formatting

This commit is contained in:
Farook Al-Sammarraie 2022-07-23 16:51:46 +03:00
parent 5f22a6562a
commit 4e4dbec120
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ namespace crow
std::string static_dir_(CROW_STATIC_DIRECTORY);
std::replace(static_dir_.begin(), static_dir_.end(), '\\', '/');
if (static_dir_[static_dir_.length() - 1] != '/')
static_dir_ += '/';
static_dir_ += '/';
route<crow::black_magic::get_parameter_tag(CROW_STATIC_ENDPOINT)>(CROW_STATIC_ENDPOINT)([static_dir_](crow::response& res, std::string file_path_partial) {
utility::sanitize_filename(file_path_partial);