mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix code formatting
This commit is contained in:
parent
5ad5d52f05
commit
f9c07707f3
@ -20,7 +20,8 @@ void StatusPageController::service(HttpRequest &request, HttpResponse &response)
|
||||
response.setHeader("Content-Type", "text/html; charset=utf-8");
|
||||
response.setHeader("Connection", "close");
|
||||
|
||||
Template StatusPage = Template(QStringLiteral(
|
||||
Template StatusPage = Template(
|
||||
QStringLiteral(
|
||||
"<!DOCTYPE html>\n"
|
||||
"<html>\n"
|
||||
"<head>\n"
|
||||
@ -50,11 +51,9 @@ void StatusPageController::service(HttpRequest &request, HttpResponse &response)
|
||||
"</p>\n"
|
||||
"</center>\n"
|
||||
"</body>\n"
|
||||
"</html>\n"
|
||||
),
|
||||
"</html>\n"),
|
||||
|
||||
"StatusPage"
|
||||
);
|
||||
"StatusPage");
|
||||
|
||||
StatusPage.enableWarnings();
|
||||
|
||||
@ -74,8 +73,7 @@ void StatusPageController::service(HttpRequest &request, HttpResponse &response)
|
||||
|
||||
// Fill template
|
||||
StatusPage.loop("Library", num_libs);
|
||||
for (size_t i = 0; i < num_libs; i++)
|
||||
{
|
||||
for (size_t i = 0; i < num_libs; i++) {
|
||||
StatusPage.setVariable(QString("Library%1.Name").arg(i), library_names.at(i));
|
||||
StatusPage.setVariable(QString("Library%1.Path").arg(i), libraries.getPath(library_names.at(i)));
|
||||
}
|
||||
|
@ -160,8 +160,7 @@ void RequestMapper::service(HttpRequest &request, HttpResponse &response)
|
||||
QLOG_TRACE() << "X-Request-Id: " << request.getHeader("x-request-id");
|
||||
|
||||
// Browsers ask for text/html
|
||||
if (path.startsWith("/webui"))
|
||||
{
|
||||
if (path.startsWith("/webui")) {
|
||||
serviceWebUI(request, response);
|
||||
} else if (path.startsWith("/v2")) {
|
||||
serviceV2(request, response);
|
||||
|
Loading…
x
Reference in New Issue
Block a user