aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'handler.go')
-rw-r--r--handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handler.go b/handler.go
index 0c81c2e..b913906 100644
--- a/handler.go
+++ b/handler.go
@@ -127,7 +127,7 @@ func (h Handler) Handle(r gemini.Request) gemini.Response {
return gemini.ErrorResponse(err)
}
- if isExecutable(path) {
+ if h.cfg.ExecuteFiles && isExecutable(path) {
return h.serveExecutable(r, path)
}