diff options
Diffstat (limited to 'src/loader/response.nim')
-rw-r--r-- | src/loader/response.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/response.nim b/src/loader/response.nim index a25ea476..1133a5e4 100644 --- a/src/loader/response.nim +++ b/src/loader/response.nim @@ -79,7 +79,7 @@ proc blob(response: Response): Promise[JSResult[Blob]] {.jsfunc.} = GC_ref(s) let deallocFun = proc() = GC_unref(s) - let blob = newBlob(addr s[0], s.len, response.contenttype, deallocFun) + let blob = newBlob(unsafeAddr s[0], s.len, response.contenttype, deallocFun) ok(blob)) proc json(ctx: JSContext, this: Response): Promise[JSResult[JSValue]] |