tower-rs / tower-http

HTTP specific Tower utilities.
675 stars 156 forks source link

Fix option to append index.html for `ServeDir` #476

Closed hasali19 closed 6 months ago

hasali19 commented 6 months ago

ServeDir currently has an append_index_html_on_directories option, but does not actually use it. This fixes it to check if the path is a directory and append index.html if requested.