Skip to content
New issue

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

list directory if index not found #583

Merged
merged 1 commit into from
Aug 29, 2021

Conversation

aliemjay
Copy link
Contributor

closes #275
supersedes #484

#[case(server(&["--index", FILES[0]]))]
#[case(server(&["--index", "does-not-exist.html"]))]
fn index_fallback_to_listing(#[case] server: TestServer) -> Result<(), Error> {
// If index file is not found, show directory listin instead.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: listing.

src/main.rs Show resolved Hide resolved
@svenstaro svenstaro merged commit 78b64b5 into svenstaro:master Aug 29, 2021
@svenstaro
Copy link
Owner

Short and sweet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'miniserve --index index.html' gives 404 when index.html is not present in a directory.
2 participants