TheWaWaR / TheWaWaR/simple-http-server
redirect /page to /page.html
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.5k
- Forks
- 219
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for working on simple-http-server, it's been working great for us!
We use simple-http-server for local development on our website, one issue we have is that our links are set up like /tutorial not /tutorial.html. This currently results in a 404.
Would you accept a pull request that adds this functionality?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the HTTP request path handling for static files in simple-http-server and trace how /tutorial currently becomes a 404. Check the existing request-handling tests, if present, before deciding how extensionless paths should map to .html. Done means a request such as /tutorial serves the corresponding HTML page while missing targets still return 404.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100