about summary refs log tree commit diff stats
path: root/src/local/pager.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r--src/local/pager.nim9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index de990767..c77d724b 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1970,13 +1970,8 @@ proc handleConnectingContainer*(pager: Pager; i: int) =
     inc item.state
     # continue
   of ccsBeforeHeaders:
-    let response = Response(
-      res: item.res,
-      outputId: item.outputId,
-      status: item.status,
-      url: container.request.url,
-      body: stream
-    )
+    let response = newResponse(item.res, container.request, stream,
+      item.outputId, item.status)
     var r = stream.initPacketReader()
     r.sread(response.headers)
     # done