From 0ef43baf0fc5db3a069047ac4f06bf20227f63b5 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 23 May 2022 14:50:16 +0200 Subject: feat(minion): discard request data --- minion/src/wifi_module.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/minion/src/wifi_module.cpp b/minion/src/wifi_module.cpp index d1f91c9..d377bd8 100644 --- a/minion/src/wifi_module.cpp +++ b/minion/src/wifi_module.cpp @@ -278,13 +278,15 @@ auto WiFiModule::read_incoming_request() noexcept -> HTTPRequest _read_bytes(request_data, request_data_length, TIMEOUT_LONG); + free(request_data); + return HTTPRequest( connection, request_method, http_version, request_path, - request_data_length, - request_data + 0, // request_data_length, + nullptr // request_data ); } -- cgit v1.2.3-18-g5258