Skip to content

Commit

Permalink
Merge pull request #442 from lars-erik/bug/encode-path-for-remote
Browse files Browse the repository at this point in the history
Handle international characters in remote HS paths
  • Loading branch information
gcorne authored Feb 23, 2021
2 parents 9980ab2 + 7632781 commit 4f2fdec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli-lib/api/fileMapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async function downloadDefault(accountId, filepath, options = {}) {
*/
async function deleteFile(accountId, filePath, options = {}) {
return http.delete(accountId, {
uri: `${FILE_MAPPER_API_PATH}/delete/${filePath}`,
uri: `${FILE_MAPPER_API_PATH}/delete/${encodeURIComponent(filePath)}`,
...options,
});
}
Expand Down

0 comments on commit 4f2fdec

Please sign in to comment.