storage/curl: unescape URI in MapToRelativeUTF8()

This commit is contained in:
Max Kellermann 2019-10-15 13:30:29 +02:00
parent 364acc8949
commit ead208987d
1 changed files with 2 additions and 3 deletions

View File

@ -85,9 +85,8 @@ CurlStorage::MapUTF8(const char *uri_utf8) const noexcept
const char *
CurlStorage::MapToRelativeUTF8(const char *uri_utf8) const noexcept
{
// TODO: escape/unescape?
return PathTraitsUTF8::Relative(base.c_str(), uri_utf8);
return PathTraitsUTF8::Relative(base.c_str(),
CurlUnescape(uri_utf8).c_str());
}
class BlockingHttpRequest : protected CurlResponseHandler {