From ce44b6d65af8edf97178c34884e989d2ecf03bc5 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Fri, 13 Oct 2017 13:35:47 +0300 Subject: [PATCH] Fix. Set response.client as object member not class field. --- src/pegasus/response.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pegasus/response.lua b/src/pegasus/response.lua index 6bc51b3..16d721b 100644 --- a/src/pegasus/response.lua +++ b/src/pegasus/response.lua @@ -94,9 +94,9 @@ function Response:new(client, writeHandler) newObj.headers = {} newObj.status = 200 newObj.filename = '' - self.closed = false - self.client = client - self.writeHandler = writeHandler + newObj.closed = false + newObj.client = client + newObj.writeHandler = writeHandler return setmetatable(newObj, self) end