diff options
Diffstat (limited to 'gosher')
-rwxr-xr-x | gosher | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -209,7 +209,11 @@ case $selector in if [ "${RP1}" = "${RP2}" ]; then if [ -f "${RP1}" ]; then - serve_selector "${RP1}" + if [ -n "$(echo $RP1 | sed -n '/\.gph$/p')" ]; then + serve_index $RP1 + else + serve_selector "${RP1}" + fi elif [ -d "${RP1}" ]; then [ -f "${RP1}/gophermap" ] && serve_selector "${RP1}/gophermap" [ -f "${RP1}/index.gph" ] && serve_index "${RP1}/index.gph" |