Use application/json for REST API

This commit is contained in:
peteruithoven 2014-01-31 15:41:53 +01:00
parent 11f8364e6e
commit daabffd1ca
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ function M.new(requestObject)
local self = setmetatable({}, M)
self.body = { status = nil, data = {} }
self:setHttpStatus(200, 'OK')
self:setContentType('text/plain;charset=UTF-8')
self:setContentType('application/json;charset=UTF-8')
--self:setContentType('application/json;charset=UTF-8')
-- A queue for functions to be executed when the response has been given.