Skip to content

Public assets with special chars are not served #1426

@jods4

Description

@jods4

Describe the bug

Static assets referenced by encoded URLs are not served.

Reproduction

  1. Create a file /public/Hello World.css on your disk
  2. Run Vite
  3. Try to download /Hello%20World.css or /Hello+World.css
  4. You get a 404 response

Source of the issue is related to sirv, see
lukeed/sirv#82

System Info

  • vite version: 2.0.0-beta.12
  • Operating System: Win 10
  • Node version: 15.5.1
  • Package manager (npm/yarn/pnpm) and version: npm 7.3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions