From cd00813c0740930d389f935f0c2d7d8a11eef02d Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 13 May 2022 22:33:12 +0200 Subject: refactor(minion): wifi module create http request object in stack --- minion/src/wifi_module.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'minion/src/wifi_module.hpp') diff --git a/minion/src/wifi_module.hpp b/minion/src/wifi_module.hpp index 447f056..bac5998 100644 --- a/minion/src/wifi_module.hpp +++ b/minion/src/wifi_module.hpp @@ -91,10 +91,9 @@ public: /** * Reads a incoming HTTP request. * - * @returns A pointer to the request. Has to be deleted after use. Is nullptr if - * reading the request failed. + * @returns A request. Has a connection ID of -1 if reading the request failed. */ - auto read_incoming_request() noexcept -> HTTPRequest *; + auto read_incoming_request() noexcept -> HTTPRequest; auto close_connection(size_t connection_id) noexcept -> bool; -- cgit v1.2.3-18-g5258