fix(api): don't require content type for apps delete endpoint (#4093)
This commit is contained in:
parent
274b998ec5
commit
a19312bbf1
1 changed files with 2 additions and 3 deletions
|
|
@ -692,9 +692,8 @@ namespace confighttp {
|
||||||
* @api_examples{/api/apps/9999| DELETE| null}
|
* @api_examples{/api/apps/9999| DELETE| null}
|
||||||
*/
|
*/
|
||||||
void deleteApp(resp_https_t response, req_https_t request) {
|
void deleteApp(resp_https_t response, req_https_t request) {
|
||||||
if (!check_content_type(response, request, "application/json")) {
|
// Skip check_content_type() for this endpoint since the request body is not used.
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!authenticate(response, request)) {
|
if (!authenticate(response, request)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue