Skip to content

Commit

Permalink
Use ngx.print for writing response body so it comes out unmodified
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjustus committed Feb 11, 2014
1 parent 242eaef commit 8fd0b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/luchador/response.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Response:serve()
ngx.status = self.status
self:set_content_encoding()
self:set_headers()
ngx.say(self.body)
ngx.print(self.body)
ngx.eof()
end

Expand Down

0 comments on commit 8fd0b94

Please sign in to comment.