fix: ensure we decode uri encoded filenames
This commit is contained in:
parent
278a39a47b
commit
55f45b4e5b
3 changed files with 8 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue