diff options
Diffstat (limited to 'src/io/about.nim')
-rw-r--r-- | src/io/about.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/io/about.nim b/src/io/about.nim index a3ecb1fe..b852c556 100644 --- a/src/io/about.nim +++ b/src/io/about.nim @@ -6,7 +6,7 @@ import ips/serialize import types/url const chawan = staticRead"res/chawan.html" -const Headers = { +const HeaderTable = { "Content-Type": "text/html" }.toTable() @@ -14,12 +14,12 @@ proc loadAbout*(request: Request, ostream: Stream) = if request.url.pathname == "blank": ostream.swrite(0) ostream.swrite(200) # ok - let headers = newHeaderList(Headers) + let headers = newHeaders(HeaderTable) ostream.swrite(headers) elif request.url.pathname == "chawan": ostream.swrite(0) ostream.swrite(200) # ok - let headers = newHeaderList(Headers) + let headers = newHeaders(HeaderTable) ostream.swrite(headers) ostream.write(chawan) else: |