0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-21 18:43:48 +01:00

Use application/json for REST API

This commit is contained in:
peteruithoven 2014-01-31 15:41:53 +01:00
parent 11f8364e6e
commit daabffd1ca

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.