mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2026-08-14 13:01:57 +02:00
Use application/json for REST API
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user