Fix license compliance and fix things up, add reverse proxy, fix some security flaws with HttpUtils

This commit is contained in:
2026-08-31 20:57:18 -05:00
parent 313e75b14c
commit 3bce736834
41 changed files with 2227 additions and 384 deletions
+15 -2
View File
@@ -27,9 +27,22 @@ ChangeableServer::ChangeableServer(std::shared_ptr<IHttpServer> original) {
this->server = original;
}
std::shared_ptr<IHttpServer> ChangeableServer::GetServer() {
mtx.Lock();
auto server = this->server;
mtx.Unlock();
return server;
}
void ChangeableServer::SetServer(std::shared_ptr<IHttpServer> server) {
mtx.Lock();
this->server = server;
mtx.Unlock();
}
bool ChangeableServer::Handle(ServerContext &ctx) {
if (this->server)
this->server->Handle(ctx);
auto server = GetServer();
if (server)
return server->Handle(ctx);
return false;
}
ChangeableServer::~ChangeableServer() {}