diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-16 16:01:55 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-16 16:01:55 +0100 |
commit | ffee0d78c9bcbf04b41892dee613ebdc7ae0b95d (patch) | |
tree | 5ae2acc465246ee8ce85cf7f2410e32657cee700 /src/io | |
parent | bbabb695c94d89f32591fa7c962eb8e22e52655a (diff) | |
download | chawan-ffee0d78c9bcbf04b41892dee613ebdc7ae0b95d.tar.gz |
Update visual home page, use name consistently
Diffstat (limited to 'src/io')
-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 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() |