about summary refs log tree commit diff stats
path: root/src/io
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-02 09:57:00 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-02 09:57:46 +0200
commit3f27d0807bd1f46d2b92d33759392c298592db20 (patch)
treea6333a16e5803df976fa8628648186b4c83b049b /src/io
parent52632e4427eca500e3bf6394852db8925e3af6d2 (diff)
downloadchawan-3f27d0807bd1f46d2b92d33759392c298592db20.tar.gz
loader, data: remove stray eprints
Diffstat (limited to 'src/io')
-rw-r--r--src/io/data.nim2
-rw-r--r--src/io/loader.nim2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/io/data.nim b/src/io/data.nim
index 012cba05..6e70eca4 100644
--- a/src/io/data.nim
+++ b/src/io/data.nim
@@ -15,7 +15,6 @@ proc loadData*(handle: LoaderHandle, request: Request) =
   let str = $request.url
   let si = "data:".len # start index
   var ct = ""
-  eprint "load data", str
   for i in si ..< str.len:
     if str[i] == ',':
       break
@@ -41,5 +40,4 @@ proc loadData*(handle: LoaderHandle, request: Request) =
       "Content-Type": ct
     }.toTable()))
     if ct.len + 1 < str.len:
-      eprint "send data", str[sd .. ^1], sd, str.len - sd
       t handle.sendData(addr str[sd], str.len - sd)
diff --git a/src/io/loader.nim b/src/io/loader.nim
index 45e19357..6b989a4c 100644
--- a/src/io/loader.nim
+++ b/src/io/loader.nim
@@ -120,9 +120,7 @@ proc loadResource(ctx: LoaderContext, request: Request, handle: LoaderHandle) =
 proc onLoad(ctx: LoaderContext, stream: Stream) =
   var request: Request
   stream.sread(request)
-  eprint "FETCH ONLOAD", $request.url
   if not ctx.config.filter.match(request.url):
-    eprint "disallowed"
     stream.swrite(ERROR_DISALLOWED_URL)
     stream.close()
   else: