Changed Content-Type of HTTP triggers from application/x-www-form-urlencoded to text/plain
This commit is contained in:
parent
937653bc0d
commit
46615efe49
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ namespace Triggers{
|
||||||
if (value.substr(0, 7) == "http://" || value.substr(0, 8) == "https://"){// interpret as url
|
if (value.substr(0, 7) == "http://" || value.substr(0, 8) == "https://"){// interpret as url
|
||||||
HTTP::Downloader DL;
|
HTTP::Downloader DL;
|
||||||
DL.setHeader("X-Trigger", trigger);
|
DL.setHeader("X-Trigger", trigger);
|
||||||
DL.setHeader("Content-Type", "application/x-www-form-urlencoded");
|
DL.setHeader("Content-Type", "text/plain");
|
||||||
HTTP::URL url(value);
|
HTTP::URL url(value);
|
||||||
if (DL.post(url, payload, sync) && sync && DL.isOk()){
|
if (DL.post(url, payload, sync) && sync && DL.isOk()){
|
||||||
return DL.data();
|
return DL.data();
|
||||||
|
|
Loading…
Add table
Reference in a new issue