fix directory listing #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mike/bash-web-server!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Redirect /foo to /foo/ if it's a directory
This is standard behavior in HTTP servers (like Apache or nginx): if a directory is requested without a trailing slash, the server issues a 301 Moved Permanently redirect to the same path with a / added
ah! good catch and good change!
yes, i can recreate this bug and definitely see the behavior you see. I tested against my website and a python simple http server and can verify the 301 behavior you mention:
Also my website (nginx behind cloudflare proxy):
Thanks for the change! i think the emoji is a pretty nice change too... LGTM