fix(api): don't require content type for apps delete endpoint (#4093)

This commit is contained in:
Gordon Tyler 2025-07-19 10:32:11 -04:00 committed by GitHub
commit a19312bbf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}