added compression to crow
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user