Skip to content

Commit

Permalink
fix: try to serve assets from unencoded and encoded paths (#6728)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Brimble <grimble@cloudflare.com>
  • Loading branch information
emily-shen and Greg Brimble authored Sep 23, 2024
1 parent 50977e4 commit 1ca313f
Show file tree
Hide file tree
Showing 21 changed files with 1,656 additions and 807 deletions.
11 changes: 11 additions & 0 deletions .changeset/shaggy-peas-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@cloudflare/workers-shared": patch
"miniflare": patch
"wrangler": patch
---

fix: remove filepath encoding on asset upload and handle sometimes-encoded characters

Some characters like [ ] @ are encoded by encodeURIComponent() but are often requested at an unencoded URL path.
This change will make assets with filenames with these characters accessible at both the encoded and unencoded paths,
but to use the encoded path as the canonical one, and to redirect requests to the canonical path if necessary.
Loading

0 comments on commit 1ca313f

Please sign in to comment.