elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
9.09k stars 193 forks source link

staticPlugin didn't supply chinese path #687

Open Leonard-Li777 opened 2 weeks ago

Leonard-Li777 commented 2 weeks ago

What version of Elysia.JS is running?

1.0.16

What platform is your computer?

Microsoft Windows NT 10.0.20348.0 x64

What steps can reproduce the bug?

new Elysia()
  .use(staticPlugin({
    assets: 'E:\\workspace\\editly\\associateEnglish\\output',
    prefix: '/public',
  }))

chinese path didn't word,but english path is ok!

What is the expected behavior?

http://xxx.xxx.xxx.xxx:3000/public/confuse%E6%B7%B7%E6%B7%86,confusion%E5%9B%B0%E6%83%91,confident%E8%87%AA%E4%BF%A1.mp4

What do you see instead?

image

Additional information

No response