We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here are the steps to reproduce: in Windows command line:
C:\Users\xxx\temp>echo Hello > world#.txt C:\Users\xxx\temp>npx serve ┌──────────────────────────────────────────────────┐ │ │ │ Serving! │ │ │ │ - Local: http://localhost:62677 │ │ - On Your Network: http://10.0.75.1:62677 │ │ │ │ This port was picked because 5000 is in use. │ │ │ │ Copied local address to clipboard! │ │ │ └──────────────────────────────────────────────────┘
Open your browser and click on the world#.txt fileyou will get a 404 error. This is because the hash key is not url encoded. The correct URL should have been http://localhost:62677/world%23.txt instead of http://localhost:62677/world#.txt
In fact if you manually change the URL to http://localhost:62677/world%23.txt it will work and display Hello
The text was updated successfully, but these errors were encountered:
Aha, I just found this bug
Sorry, something went wrong.
I create a PR to fix that vercel/serve-handler#150
in directory listings, properly encode unsafe URL characters in links
2f90d39
fixes: * upstream issue 566 vercel/serve#566
shameless self-promotion alert:this issue is fixed in my @warren-bank/serve fork of serve
@warren-bank/serve
serve
No branches or pull requests
Here are the steps to reproduce:
in Windows command line:
Open your browser and click on the world#.txt fileyou will get a 404 error. This is because the hash key is not url encoded. The correct URL should have been http://localhost:62677/world%23.txt instead of http://localhost:62677/world#.txt
In fact if you manually change the URL to http://localhost:62677/world%23.txt it will work and display Hello
The text was updated successfully, but these errors were encountered: