26.05.2020, 11:14
This is due to older FW that you're using. Change request parameters to this:
Code:
res, code, hdrs, stat = https.request({
url = url,
method = 'POST',
protocol = 'tlsv12',
headers = {
['Content-Type'] = 'application/json',
['Content-Length'] = #body,
},
source = ltn12.source.string(body),
sink = ltn12.sink.table(resp),
})