cargo-docserver icon indicating copy to clipboard operation
cargo-docserver copied to clipboard

Fix relative links if the user omits "/index.html" in his request

Open asomers opened this issue 4 years ago • 0 comments

cargo-docserver can't simply pretend that the user meant to fetch "FOO/index.html" if he requests "FOO" and retrieve the file accordingly. Doing that breaks relative links. Instead, cargo-docserver must send a 302 redirect in such cases.

Fixes #10

asomers avatar Oct 16 '21 20:10 asomers