From 9ff343c860fa4b109e139579146246b9a0d7a298 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 21 Mar 2024 17:45:55 +0100 Subject: loader: set static CGI env vars in initLoaderContext no reason to do it separately in setupEnv --- src/loader/cgi.nim | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/loader/cgi.nim') diff --git a/src/loader/cgi.nim b/src/loader/cgi.nim index f72009d7..067e784d 100644 --- a/src/loader/cgi.nim +++ b/src/loader/cgi.nim @@ -27,13 +27,6 @@ proc putMappedURL(url: URL) = proc setupEnv(cmd, scriptName, pathInfo, requestURI, myDir: string; request: Request; contentLen: int; prevURL: URL) = let url = request.url - putEnv("SERVER_SOFTWARE", "Chawan") - putEnv("SERVER_PROTOCOL", "HTTP/1.0") - putEnv("SERVER_NAME", "localhost") - putEnv("SERVER_PORT", "80") - putEnv("REMOTE_HOST", "localhost") - putEnv("REMOTE_ADDR", "127.0.0.1") - putEnv("GATEWAY_INTERFACE", "CGI/1.1") putEnv("SCRIPT_NAME", scriptName) putEnv("SCRIPT_FILENAME", cmd) putEnv("REQUEST_URI", requestURI) -- cgit 1.4.1-2-gfad0