diff options
author | bptato <nincsnevem662@gmail.com> | 2024-01-06 20:41:42 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-01-06 20:41:42 +0100 |
commit | 54619460f2d81fb9f8f544b165aab75f34e61d58 (patch) | |
tree | 167286009a27f5c6fc062fdadabe0a85dd435517 /src/local/client.nim | |
parent | 969b894344e93c0f67f13795ee313f61f953528e (diff) | |
download | chawan-54619460f2d81fb9f8f544b165aab75f34e61d58.tar.gz |
Set cgiDir for client loader process
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index d8608503..d9971d70 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -683,6 +683,7 @@ proc newClient*(config: Config, forkserver: ForkServer, mainproc: Pid): Client = JS_SetModuleLoaderFunc(jsrt, normalizeModuleName, clientLoadJSModule, nil) let jsctx = jsrt.newJSContext() let attrs = getWindowAttributes(stdout) + let pager = newPager(config, attrs, forkserver, mainproc, jsctx) let client = Client( config: config, forkserver: forkserver, @@ -691,12 +692,13 @@ proc newClient*(config: Config, forkserver: ForkServer, mainproc: Pid): Client = defaultHeaders = config.getDefaultHeaders(), proxy = config.getProxy(), urimethodmap = config.getURIMethodMap(), + cgiDir = pager.cgiDir, acceptProxy = true, w3mCGICompat = config.external.w3m_cgi_compat ), jsrt: jsrt, jsctx: jsctx, - pager: newPager(config, attrs, forkserver, mainproc, jsctx) + pager: pager ) jsrt.setInterruptHandler(interruptHandler, cast[pointer](client)) var global = JS_GetGlobalObject(jsctx) |