Send 204 when WebAPI response contains no data

PR #21349.
This commit is contained in:
Thomas Piccirello
2025-06-04 23:25:04 -07:00
committed by GitHub
parent 1cb6173ad1
commit 0c48b70e5b
13 changed files with 215 additions and 17 deletions

View File

@@ -123,6 +123,7 @@ void AppController::shutdownAction()
{
QCoreApplication::exit();
});
setResult(QString());
}
void AppController::preferencesAction()
@@ -1167,6 +1168,8 @@ void AppController::setPreferencesAction()
// Save preferences
pref->apply();
setResult(QString());
}
void AppController::defaultSavePathAction()
@@ -1177,9 +1180,9 @@ void AppController::defaultSavePathAction()
void AppController::sendTestEmailAction()
{
app()->sendTestEmail();
setResult(QString());
}
void AppController::getDirectoryContentAction()
{
requireParams({u"dirPath"_s});
@@ -1269,6 +1272,8 @@ void AppController::setCookiesAction()
}
Net::DownloadManager::instance()->setAllCookies(cookies);
setResult(QString());
}
void AppController::networkInterfaceListAction()