about summary refs log tree commit diff stats
path: root/src/server/loader.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/loader.nim')
-rw-r--r--src/server/loader.nim3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/server/loader.nim b/src/server/loader.nim
index ef32e455..93ecc1bb 100644
--- a/src/server/loader.nim
+++ b/src/server/loader.nim
@@ -780,9 +780,6 @@ proc parseCGIPath(ctx: LoaderContext; request: Request): CGIPath =
 
 proc loadCGI(ctx: LoaderContext; client: ClientData; handle: InputHandle;
     request: Request; prevURL: URL; config: LoaderClientConfig) =
-  if ctx.config.cgiDir.len == 0:
-    handle.sendResult(ceNoCGIDir)
-    return
   let cpath = ctx.parseCGIPath(request)
   if cpath.cmd == "" or cpath.basename in ["", ".", ".."] or
       cpath.basename[0] == '~':