From d09319640c4b1e24b937d1fc37a3f8b82052e612 Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 21 May 2023 13:28:33 +0200 Subject: Rewrite new Request binding Still far from perfect, but now at least it has a bit more to do with what the standard mandates. --- src/ips/forkserver.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ips/forkserver.nim') diff --git a/src/ips/forkserver.nim b/src/ips/forkserver.nim index e7ddf1c0..c6acefc6 100644 --- a/src/ips/forkserver.nim +++ b/src/ips/forkserver.nim @@ -32,7 +32,9 @@ type ostream: Stream children: seq[(Pid, Pid)] -proc newFileLoader*(forkserver: ForkServer, defaultHeaders: HeaderList = nil, filter = newURLFilter(default = true), cookiejar: CookieJar = nil): FileLoader = +proc newFileLoader*(forkserver: ForkServer, defaultHeaders: Headers = nil, + filter = newURLFilter(default = true), + cookiejar: CookieJar = nil): FileLoader = new(result) forkserver.ostream.swrite(FORK_LOADER) var defaultHeaders = defaultHeaders -- cgit 1.4.1-2-gfad0