about summary refs log tree commit diff stats
path: root/src/io
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-04 00:00:58 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-04 00:00:58 +0200
commit0314e97a6dff29e6e06789baf3cc70ed1566f71e (patch)
tree1cd2dedc46a75148338cf391227d7ebf3f23f206 /src/io
parentb7367506fa05e9396e69b1db7277e011722af6b0 (diff)
downloadchawan-0314e97a6dff29e6e06789baf3cc70ed1566f71e.tar.gz
Fix compilation < Nim 2.0
Before Nim 2.0, addr could only be used with mutable variables.
Diffstat (limited to 'src/io')
-rw-r--r--src/io/data.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/data.nim b/src/io/data.nim
index 6e70eca4..3afe58f0 100644
--- a/src/io/data.nim
+++ b/src/io/data.nim
@@ -12,7 +12,7 @@ proc loadData*(handle: LoaderHandle, request: Request) =
   template t(body: untyped) =
     if not body:
       return
-  let str = $request.url
+  var str = $request.url
   let si = "data:".len # start index
   var ct = ""
   for i in si ..< str.len: