diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-12 10:38:42 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-12 19:37:14 +0100 |
commit | 4eb57c2b88325d3963c6671a6f27bd08fc07cb59 (patch) | |
tree | 06bec584dcaf017d94e570e6cffb394b75aca338 /src/config | |
parent | f779f672e6aa28efe03733226465c73c1a7490ad (diff) | |
download | chawan-4eb57c2b88325d3963c6671a6f27bd08fc07cb59.tar.gz |
local CGI: add mapped URI env vars; move about: to adapters
* Add MAPPED_URI_* as environment variables when a request is coming from urimethodmap It costs us compatibility with w3m, but it seems to be a massive improvement over smuggling in the URL as a query string and then writing an ad-hoc parser for every single urimethodmap script. The variables are set for every urimethodmap request, to avoid accidental leaking of global environment variables. * Move about: to adapters (an obvious improvement over the previous solution)
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/config.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/config.nim b/src/config/config.nim index 42ffafdd..db4af966 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -410,6 +410,7 @@ proc getMimeTypes*(config: Config): MimeTypes = const DefaultURIMethodMap = parseURIMethodMap(""" finger: cgi-bin:cha-finger?%s gemini: cgi-bin:gmifetch?%s +about: cgi-bin:about """) proc getURIMethodMap*(config: Config): URIMethodMap = |