about summary refs log tree commit diff stats
path: root/src/loader
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-01 21:40:26 +0200
committerbptato <nincsnevem662@gmail.com>2024-10-01 21:41:55 +0200
commit6e6d9e2ab875ffdb9dcaf1a2ed689a1390f72848 (patch)
tree54a5ff65513d6595341930d1638ecfc54df86c11 /src/loader
parentef1a514a4d5a338831bf8828bb6f0e2f8addda2a (diff)
downloadchawan-6e6d9e2ab875ffdb9dcaf1a2ed689a1390f72848.tar.gz
twtstr: misc refactorings
Diffstat (limited to 'src/loader')
-rw-r--r--src/loader/loader.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/loader.nim b/src/loader/loader.nim
index 0d6c655a..74a2a65f 100644
--- a/src/loader/loader.nim
+++ b/src/loader/loader.nim
@@ -806,7 +806,7 @@ proc loadData(ctx: LoaderContext; handle: InputHandle; request: Request) =
     handle.close()
     return
   let sd = ct.len + 1 # data start
-  let body = percentDecode(url.path.s, sd)
+  let body = percentDecode(url.path.s.toOpenArray(sd, url.path.s.high))
   if ct.endsWith(";base64"):
     let d = atob0(body) # decode from ct end + 1
     if d.isNone: