about summary refs log tree commit diff stats
path: root/src/io
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-30 00:02:25 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-30 00:02:25 +0100
commit5654f1590b000a2719b7e8cb01358c6107abf520 (patch)
tree2e88be70c123d8b4d1920446d63efae082e055d8 /src/io
parent7e2211255fe900b2d80379f109b611f5a592a532 (diff)
downloadchawan-5654f1590b000a2719b7e8cb01358c6107abf520.tar.gz
Add about:blank
Diffstat (limited to 'src/io')
-rw-r--r--src/io/about.nim7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/io/about.nim b/src/io/about.nim
index 674885ba..a3ecb1fe 100644
--- a/src/io/about.nim
+++ b/src/io/about.nim
@@ -11,7 +11,12 @@ const Headers = {
 }.toTable()
 
 proc loadAbout*(request: Request, ostream: Stream) =
-  if request.url.pathname == "chawan":
+  if request.url.pathname == "blank":
+    ostream.swrite(0)
+    ostream.swrite(200) # ok
+    let headers = newHeaderList(Headers)
+    ostream.swrite(headers)
+  elif request.url.pathname == "chawan":
     ostream.swrite(0)
     ostream.swrite(200) # ok
     let headers = newHeaderList(Headers)