diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-24 14:12:27 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-24 14:21:01 +0100 |
commit | fb21b1e4f0ee0e55e9556bf1f399d00d5eae26e4 (patch) | |
tree | c532aa98ee6bedf19b840f4ea0c7360a42407fbf /src/loader/cgi.nim | |
parent | b27deb7672c53e3ee59f91b7091e83ab28a8318d (diff) | |
download | chawan-fb21b1e4f0ee0e55e9556bf1f399d00d5eae26e4.tar.gz |
io: derive DynStream from RootObj (not Stream)
This way they are no longer compatible, but we no longer need them to be compatible anyway. (This also forces us to throw out the old serialize module, and use packet writers everywhere.)
Diffstat (limited to 'src/loader/cgi.nim')
-rw-r--r-- | src/loader/cgi.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/loader/cgi.nim b/src/loader/cgi.nim index 067e784d..7d08f4a2 100644 --- a/src/loader/cgi.nim +++ b/src/loader/cgi.nim @@ -1,9 +1,9 @@ import std/options import std/os import std/posix -import std/streams import std/strutils +import io/dynstream import io/posixstream import io/stdio import loader/connecterror @@ -221,7 +221,7 @@ proc loadCGI*(handle: LoaderHandle; request: Request; cgiDir: seq[string]; let multipart = request.multipart.get for entry in multipart.entries: ps.writeEntry(entry, multipart.boundary) - ps.close() + ps.sclose() handle.parser = HeaderParser(headers: newHeaders()) handle.istream = newPosixStream(pipefd[0]) |