unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.89k stars 496 forks source link

fix(cache): try decode path #2658

Open cjpearson opened 1 month ago

cjpearson commented 1 month ago

๐Ÿ”— Linked issue

2657

โ“ Type of change

๐Ÿ“š Description

This follows the same approach as https://github.com/unjs/nitro/pull/1459, replacing the decodeURI with decodePath from ufo. This means that an invalid path will no longer throw an error but instead use the undecoded text.

๐Ÿ“ Checklist