Skip to content

Commit

Permalink
Merge pull request #74 from moteus/response_client
Browse files Browse the repository at this point in the history
Fix. Set response.client as object member not class field.
  • Loading branch information
EvandroLG authored Oct 13, 2017
2 parents 06125fd + ce44b6d commit 28ee6fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pegasus/response.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28ee6fe

Please sign in to comment.