fix: ensure we decode uri encoded filenames

This commit is contained in:
Andy Burke 2025-08-12 15:33:32 -07:00
parent 278a39a47b
commit 55f45b4e5b
3 changed files with 8 additions and 5 deletions

View file

@ -321,9 +321,12 @@ Deno.test({
put_body.delete('file');
test_file = undefined;
const get_response = await fetch(`http://${test_server_info.hostname}:${test_server_info.port}/files/2Q==(30).txt`, {
method: 'GET'
});
const get_response = await fetch(
`http://${test_server_info.hostname}:${test_server_info.port}/files/${encodeURIComponent('2Q==(30).txt')}`,
{
method: 'GET'
}
);
asserts.assert(get_response.ok);
asserts.assert(get_response.body);