1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib/roles/http/server
Karl Rupp bb439e766a 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.
2020-03-23 21:03:54 +00:00
..
access-log.c mux children: generalize helpers out of h2 implementation 2019-12-29 19:59:16 +00:00
fops-zip.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
lejp-conf.c rtos diet: make basic auth support a config option on by default 2020-03-04 11:00:04 +00:00
lws-spa.c lws_spa: avoid reading past table 2020-03-14 07:55:58 +00:00
ranges.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
rewrite.c cleaning 2020-01-05 22:17:58 +00:00
server.c http server: Using default filename also for subdirectories. 2020-03-23 21:03:54 +00:00