about summary refs log tree commit diff stats
path: root/src/loader/cgi.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/cgi.nim')
-rw-r--r--src/loader/cgi.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/cgi.nim b/src/loader/cgi.nim
index 347855ac..f3c5b1e3 100644
--- a/src/loader/cgi.nim
+++ b/src/loader/cgi.nim
@@ -41,7 +41,7 @@ proc setupEnv(cmd, scriptName, pathInfo, requestURI, myDir: string;
     putEnv("PATH_INFO", pathInfo)
   if url.query.isSome:
     putEnv("QUERY_STRING", url.query.get)
-  if request.httpMethod == HTTP_POST:
+  if request.httpMethod == hmPost:
     if request.multipart.isSome:
       putEnv("CONTENT_TYPE", request.multipart.get.getContentType())
     else: