diff options
Diffstat (limited to 'src/loader/response.nim')
-rw-r--r-- | src/loader/response.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/loader/response.nim b/src/loader/response.nim index 8b33621e..5531da9d 100644 --- a/src/loader/response.nim +++ b/src/loader/response.nim @@ -59,13 +59,15 @@ type jsDestructor(Response) -proc newResponse*(res: int; request: Request; stream: SocketStream): Response = +proc newResponse*(res: int; request: Request; stream: SocketStream; + outputId: int; status: uint16): Response = return Response( res: res, url: request.url, body: stream, bodyRead: EmptyPromise(), - outputId: -1 + outputId: outputId, + status: status ) func makeNetworkError*(): Response {.jsstfunc: "Response.error".} = |