summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-23 14:50:16 +0200
committerHampusM <hampus@hampusmat.com>2022-05-23 14:50:16 +0200
commit0ef43baf0fc5db3a069047ac4f06bf20227f63b5 (patch)
treecd4d731463b843266a3a4c4e0324bec0cff4e251
parent191ea9f5e37da96bb3b7d3dbc6ce34c248f8a2fc (diff)
feat(minion): discard request data
-rw-r--r--minion/src/wifi_module.cpp6
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
);
}