diff options
Diffstat (limited to 'minion')
-rw-r--r-- | minion/src/wifi_module.cpp | 6 |
1 files 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 ); } |