Skip to content

Commit

Permalink
* Removed response header setting, Content-Length, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
António P. P. Almeida committed Oct 22, 2015
1 parent 2ab4ff5 commit 436c8aa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/resty/tarantool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -530,12 530,6 @@ function M.ping(self)
elseif response and response.code ~= response_keys.ok then
return nil, response and response.error or 'Internal error.'
else
-- Set the headers properly.
local response = 'PONG'
-- We need to add the \r\n at the end, hence add 1 to the string
-- length.
ngx.header['Content-Length'] = slen(response) 1
ngx.header['Content-Type'] = 'text/plain'
return 'PONG'
end
end
Expand Down

0 comments on commit 436c8aa

Please sign in to comment.