Changed Content-Type of HTTP triggers from application/x-www-form-urlencoded to text/plain

This commit is contained in:
Thulinma 2018-05-14 13:58:34 +02:00
parent 937653bc0d
commit 46615efe49

View file

@ -39,7 +39,7 @@ namespace Triggers{
if (value.substr(0, 7) == "http://" || value.substr(0, 8) == "https://"){// interpret as url
HTTP::Downloader DL;
DL.setHeader("X-Trigger", trigger);
DL.setHeader("Content-Type", "application/x-www-form-urlencoded");
DL.setHeader("Content-Type", "text/plain");
HTTP::URL url(value);
if (DL.post(url, payload, sync) && sync && DL.isOk()){
return DL.data();