Normalize path
This commit is contained in:
parent
b414bfbf13
commit
1f877e4d4e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue