added compression to crow

This commit is contained in:
2026-02-22 22:06:07 +01:00
parent f805804bc0
commit a48ff4780b
4 changed files with 17 additions and 7 deletions

View File

@@ -6,6 +6,7 @@
#include "login.hpp"
#include "ShadowrunApi.hpp"
#include "databasepool.h"
#include "crow/compression.h"
using namespace std;
@@ -74,5 +75,9 @@ int main() {
});
app.loglevel(crow::LogLevel::INFO);
app.bindaddr("0.0.0.0").port(settings.http_port).multithreaded().run();
app.bindaddr("0.0.0.0")
.port(settings.http_port)
.use_compression(crow::compression::algorithm::GZIP)
.multithreaded()
.run();
}