about summary refs log tree commit diff stats
path: root/src/loader/loader.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-01-26 01:11:37 +0100
committerbptato <nincsnevem662@gmail.com>2024-01-26 01:11:37 +0100
commit9b5df91240ea3e38e58d771597cb2a2c3ca95f29 (patch)
tree8d9d4fbe96682b27bc70bf415e050248d69dedae /src/loader/loader.nim
parentfe9ac5f7824f935d22a1935b1f6f3c51823d3d02 (diff)
downloadchawan-9b5df91240ea3e38e58d771597cb2a2c3ca95f29.tar.gz
cgi: fix broken libexec path env variable
Diffstat (limited to 'src/loader/loader.nim')
-rw-r--r--src/loader/loader.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/loader/loader.nim b/src/loader/loader.nim
index de70c551..2fda709c 100644
--- a/src/loader/loader.nim
+++ b/src/loader/loader.nim
@@ -103,6 +103,7 @@ type
     cgiDir*: seq[string]
     uriMethodMap*: URIMethodMap
     w3mCGICompat*: bool
+    libexecPath*: string
 
   FetchPromise* = Promise[JSResult[Response]]
 
@@ -133,7 +134,7 @@ proc loadResource(ctx: LoaderContext, request: Request, handle: LoaderHandle) =
           redo = true
           continue
     if request.url.scheme == "cgi-bin":
-      handle.loadCGI(request, ctx.config.cgiDir, prevurl)
+      handle.loadCGI(request, ctx.config.cgiDir, ctx.config.libexecPath, prevurl)
       if handle.istream == nil:
         handle.close()
       else: