about summary refs log tree commit diff stats
path: root/src/loader/cgi.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-21 17:45:55 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-21 17:45:55 +0100
commit9ff343c860fa4b109e139579146246b9a0d7a298 (patch)
tree1c44b0348166157c798d82c5411a94e6edcd74f7 /src/loader/cgi.nim
parentbdd482b0451f949870480d6d35be52953c08531a (diff)
downloadchawan-9ff343c860fa4b109e139579146246b9a0d7a298.tar.gz
loader: set static CGI env vars in initLoaderContext
no reason to do it separately in setupEnv
Diffstat (limited to 'src/loader/cgi.nim')
-rw-r--r--src/loader/cgi.nim7
1 files changed, 0 insertions, 7 deletions
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)