about summary refs log tree commit diff stats
path: root/src/io/response.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/response.nim')
-rw-r--r--src/io/response.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/io/response.nim b/src/io/response.nim
index fbe5339e..5c0253e9 100644
--- a/src/io/response.nim
+++ b/src/io/response.nim
@@ -21,6 +21,8 @@ type
     unregisterFun*: proc()
     bodyRead*: Promise[string]
 
+jsDestructor(Response)
+
 proc newResponse*(res: int, request: Request, fd = -1, stream: Stream = nil):
     Response =
   return Response(