mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 02:53:49 +01:00
Use application/json for REST API
This commit is contained in:
parent
11f8364e6e
commit
daabffd1ca
@ -46,7 +46,7 @@ function M.new(requestObject)
|
|||||||
local self = setmetatable({}, M)
|
local self = setmetatable({}, M)
|
||||||
self.body = { status = nil, data = {} }
|
self.body = { status = nil, data = {} }
|
||||||
self:setHttpStatus(200, 'OK')
|
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')
|
--self:setContentType('application/json;charset=UTF-8')
|
||||||
|
|
||||||
-- A queue for functions to be executed when the response has been given.
|
-- A queue for functions to be executed when the response has been given.
|
||||||
|
Loading…
Reference in New Issue
Block a user