From 8fd0b94dd5c582610df9de0bdb87e2756d0fb8c9 Mon Sep 17 00:00:00 2001 From: Max Justus Spransy Date: Tue, 11 Feb 2014 17:41:39 -0600 Subject: [PATCH] Use ngx.print for writing response body so it comes out unmodified --- lib/luchador/response.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/luchador/response.lua b/lib/luchador/response.lua index b58682d..56a01be 100644 --- a/lib/luchador/response.lua +++ b/lib/luchador/response.lua @@ -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