From e6422886a6fffc87089099cfca1802528d9d5bbb Mon Sep 17 00:00:00 2001 From: Tobias Blum Date: Mon, 22 Mar 2021 21:54:23 +0100 Subject: [PATCH] Fix #14, update dependencies Switch to HTTP/1.0 as Graph API uses now chunked transfer encoding which is a HTTP/1.1 feature that isn't supported by ESP32 HttpClient. --- platformio.ini | 7 ++++--- src/request_handler.h | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index ecb6626..45fe46c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -23,10 +23,11 @@ upload_speed=921600 build_flags= -DDATAPIN=13 -DNUMLEDS=16 + ; -DCORE_DEBUG_LEVEL=5 lib_deps= - IotWebConf@2.3.0 - ArduinoJson@6.13.0 - WS2812FX@1.2.2 + IotWebConf@2.3.3 + ArduinoJson@6.17.3 + WS2812FX@1.3.1 [env:esp32doit-devkit-v1] board=esp32doit-devkit-v1 diff --git a/src/request_handler.h b/src/request_handler.h index 49e4792..3838d2a 100644 --- a/src/request_handler.h +++ b/src/request_handler.h @@ -36,6 +36,7 @@ boolean requestJsonApi(JsonDocument& doc, String url, String payload = "", size_ if (https.begin(*client, url)) { // HTTPS https.setConnectTimeout(10000); https.setTimeout(10000); + https.useHTTP10(true); // Send auth header? if (sendAuth) {