follow #15860 clean cgi module (#16487)

* follow #15860  clean cgi module

* follow #15860  clean cgi module
This commit is contained in:
flywind 2020-12-27 12:46:21 -06:00 • committed by GitHub
commit e718a4a058
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 77 deletions

View file

@ -1,8 +1,4 @@
discard """
output: "works"
"""
import cgi, strtabs
import std/[cgi, strtabs]
proc handleRequest(query: string): StringTableRef =
iterator foo(): StringTableRef {.closure.} =
@ -26,4 +22,3 @@ proc main =
quit "but now a leak"
main()
echo "works"