casket: dont require specifying the index.html for directories

FossilOrigin-Name: d6cf6ded09795da5e31872bd9cbb6fe01d2078e436202d8a94988668384cdb20
This commit is contained in:
crc 2021-06-09 12:16:02 +00:00
parent 89570c12b2
commit 752a312f88

View file

@ -87,7 +87,8 @@ the requested file from any query string that may be present.
:filename (-s) :filename (-s)
check-for-params map-/-to-index ensure-leading-/ check-for-params map-/-to-index ensure-leading-/
&Requested &Host WEBROOT '%s/%s%s s:format ; &Requested &Host WEBROOT '%s/%s%s s:format
dup '%s/index.html s:format file:exists? [ '%s/index.html s:format ] if ;
~~~ ~~~
Next, I need to determine the file type. I'll do this by taking Next, I need to determine the file type. I'll do this by taking