diff options
author | bptato <nincsnevem662@gmail.com> | 2024-01-26 01:11:37 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-01-26 01:11:37 +0100 |
commit | 9b5df91240ea3e38e58d771597cb2a2c3ca95f29 (patch) | |
tree | 8d9d4fbe96682b27bc70bf415e050248d69dedae /src/loader/loader.nim | |
parent | fe9ac5f7824f935d22a1935b1f6f3c51823d3d02 (diff) | |
download | chawan-9b5df91240ea3e38e58d771597cb2a2c3ca95f29.tar.gz |
cgi: fix broken libexec path env variable
Diffstat (limited to 'src/loader/loader.nim')
-rw-r--r-- | src/loader/loader.nim | 3 |
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: |