summary refs log tree commit diff stats
path: root/lib/pure/cgi.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure/cgi.nim')
-rw-r--r--lib/pure/cgi.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/cgi.nim b/lib/pure/cgi.nim
index 4e2b6f5f8..31fb24eef 100644
--- a/lib/pure/cgi.nim
+++ b/lib/pure/cgi.nim
@@ -377,7 +377,7 @@ proc setCookie*(name, value: string) =
   write(stdout, "Set-Cookie: ", name, "=", value, "\n")
 
 var
-  gcookies: PStringTable = nil
+  gcookies {.threadvar.}: PStringTable
 
 proc getCookie*(name: string): TaintedString =
   ## Gets a cookie. If no cookie of `name` exists, "" is returned.