diff options
Diffstat (limited to 'src/io/file.nim')
-rw-r--r-- | src/io/file.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/io/file.nim b/src/io/file.nim index 092810e2..24dea51c 100644 --- a/src/io/file.nim +++ b/src/io/file.nim @@ -10,7 +10,7 @@ import types/url proc loadDir(url: URL, path: string, ostream: Stream) = ostream.swrite(0) ostream.swrite(200) # ok - ostream.swrite(newHeaderList({"Content-Type": "text/html"}.toTable())) + ostream.swrite(newHeaders({"Content-Type": "text/html"}.toTable())) ostream.write(""" <HTML> <HEAD> @@ -48,7 +48,7 @@ proc loadDir(url: URL, path: string, ostream: Stream) = proc loadSymlink(path: string, ostream: Stream) = ostream.swrite(0) ostream.swrite(200) # ok - ostream.swrite(newHeaderList({"Content-Type": "text/html"}.toTable())) + ostream.swrite(newHeaders({"Content-Type": "text/html"}.toTable())) let sl = expandSymlink(path) ostream.write(""" <HTML> @@ -79,7 +79,7 @@ proc loadFile*(url: URL, ostream: Stream) = else: ostream.swrite(0) ostream.swrite(200) # ok - ostream.swrite(newHeaderList()) + ostream.swrite(newHeaders()) while not istream.atEnd: const bufferSize = 4096 var buffer {.noinit.}: array[bufferSize, char] |