From a19312bbf125edd4b37beec231138550635cc64a Mon Sep 17 00:00:00 2001 From: Gordon Tyler Date: Sat, 19 Jul 2025 10:32:11 -0400 Subject: [PATCH] fix(api): don't require content type for apps delete endpoint (#4093) --- src/confighttp.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/confighttp.cpp b/src/confighttp.cpp index 09dd671c..b50e94d9 100644 --- a/src/confighttp.cpp +++ b/src/confighttp.cpp @@ -692,9 +692,8 @@ namespace confighttp { * @api_examples{/api/apps/9999| DELETE| null} */ void deleteApp(resp_https_t response, req_https_t request) { - if (!check_content_type(response, request, "application/json")) { - return; - } + // Skip check_content_type() for this endpoint since the request body is not used. + if (!authenticate(response, request)) { return; }