Bell/cspot catchup - release

This commit is contained in:
philippe44
2023-07-25 22:28:19 -07:00
parent 4cd210838f
commit 8d4813ceb4
15 changed files with 34 additions and 44 deletions

View File

@@ -184,8 +184,10 @@ BellHTTPServer::BellHTTPServer(int serverPort) {
BELL_LOG(info, "HttpServer", "Server listening on port %d", serverPort);
this->serverPort = serverPort;
auto port = std::to_string(this->serverPort);
const char* options[] = {"listening_ports", port.c_str(), 0};
server = std::make_unique<CivetServer>(options);
civetWebOptions.push_back("listening_ports");
civetWebOptions.push_back(port);
server = std::make_unique<CivetServer>(civetWebOptions);
}
std::unique_ptr<BellHTTPServer::HTTPResponse> BellHTTPServer::makeJsonResponse(