Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http server: Using default filename also for subdirectories.
If a user sets a default filename for a http mount (.def in lws_http_mount), eg. 'default.html', then a GET request for '/' correctly forwards to '/default.html'. However, without this commit the default filename is not taken into account for subdirectories. Thus, GET subdir/ will forward to 'subdir/index.html' instead of the expected 'subdir/default.html' This commit changes the behavior such that the user-provided default filename is also used for subdirectories.
- Loading branch information