user files sync fix: encoding uri components

This commit is contained in:
mrfry 2023-05-03 20:13:04 +02:00
parent 7377b9b182
commit a29d4d3541

View file

@ -105,7 +105,9 @@ async function downloadUserFiles(filesToGet: UserFileToGet[]) {
{
host: peer.host,
port: peer.port,
path: `/api/userFiles/${dir}/${fileName}`,
path: `/api/userFiles/${encodeURIComponent(
dir
)}/${encodeURIComponent(fileName)}`,
},
filePath,
peer.http