WiFi-box can't handle https

This commit is contained in:
Simon Voordouw 2017-06-13 13:06:32 +02:00
parent 97fb6609ea
commit 0d955b48ea
2 changed files with 3 additions and 3 deletions

View File

@ -418,8 +418,8 @@ M.doodle3d_update_baseUrl = {
description = '' description = ''
} }
M.doodle3d_gcode_server = { M.gcode_server = {
default = 'https://tranquil-meadow-94621.herokuapp.com/', default = 'http://tranquil-meadow-94621.herokuapp.com/',
type = 'string', type = 'string',
description ='' description =''
} }

View File

@ -230,7 +230,7 @@ function M.fetch_POST(request, response)
end end
local socket = printer:getId() local socket = printer:getId()
local remote = settings.get('gcode_server') local remote = settings.get('gcode.server')
local id = request:get("id") local id = request:get("id")
io.popen("print-fetch " .. socket .. " " .. remote .. " " .. id .. gcodeFiles) io.popen("print-fetch " .. socket .. " " .. remote .. " " .. id .. gcodeFiles)
response:setSuccess() response:setSuccess()