From 46615efe49e78c03a718bbf51dd612265b2cde6b Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 14 May 2018 13:58:34 +0200 Subject: [PATCH] Changed Content-Type of HTTP triggers from application/x-www-form-urlencoded to text/plain --- lib/triggers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/triggers.cpp b/lib/triggers.cpp index 926769b1..871518ef 100644 --- a/lib/triggers.cpp +++ b/lib/triggers.cpp @@ -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();