From ffee0d78c9bcbf04b41892dee613ebdc7ae0b95d Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 16 Dec 2022 16:01:55 +0100 Subject: Update visual home page, use name consistently --- src/io/about.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/io/about.nim b/src/io/about.nim index f90e0c36..674885ba 100644 --- a/src/io/about.nim +++ b/src/io/about.nim @@ -5,18 +5,18 @@ import io/request import ips/serialize import types/url -const cha = staticRead"res/cha.html" +const chawan = staticRead"res/chawan.html" const Headers = { "Content-Type": "text/html" }.toTable() proc loadAbout*(request: Request, ostream: Stream) = - if request.url.pathname == "cha": + if request.url.pathname == "chawan": ostream.swrite(0) ostream.swrite(200) # ok let headers = newHeaderList(Headers) ostream.swrite(headers) - ostream.write(cha) + ostream.write(chawan) else: ostream.swrite(-1) ostream.flush() -- cgit