Normalize path

This commit is contained in:
blankie 2023-04-07 23:01:30 +07:00
parent b414bfbf13
commit 1f877e4d4e
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ std::string proxy_image_url(const Config& config, blankie::murl::Url url) {
if (!url.path.empty() && url.path[0] != '/') { if (!url.path.empty() && url.path[0] != '/') {
new_url.path += '/'; new_url.path += '/';
} }
new_url.path += std::move(url.path); new_url.path += blankie::murl::normalize_path(std::move(url.path));
if (!new_url.query.empty() && !url.query.empty()) { if (!new_url.query.empty() && !url.query.empty()) {
new_url.query += '&'; new_url.query += '&';
new_url.query += std::move(url.query); new_url.query += std::move(url.query);