From 752a312f880cc20644b64df3a977bf37c9da2a7f Mon Sep 17 00:00:00 2001 From: crc Date: Wed, 9 Jun 2021 12:16:02 +0000 Subject: [PATCH] casket: dont require specifying the index.html for directories FossilOrigin-Name: d6cf6ded09795da5e31872bd9cbb6fe01d2078e436202d8a94988668384cdb20 --- example/Casket-HTTP.retro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/Casket-HTTP.retro b/example/Casket-HTTP.retro index d87624b..53d4a67 100755 --- a/example/Casket-HTTP.retro +++ b/example/Casket-HTTP.retro @@ -87,7 +87,8 @@ the requested file from any query string that may be present. :filename (-s) 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