сделал сборку с предупреждением, если версия ревизии из гита не определена. привет, Даня!

This commit is contained in:
2025-04-04 11:55:24 +03:00
parent 39cd5e6359
commit f5db46b293
4 changed files with 22 additions and 7 deletions

View File

@@ -3,14 +3,10 @@
#include <boost/log/trivial.hpp>
#include <boost/beast.hpp>
#include "server.hpp"
#include "version.h"
namespace http::server {
const char* SERVER_HEADER_VALUE = "TerminalWebServer"
#ifdef PROJECT_GIT_REVISION
" " PROJECT_GIT_REVISION
#endif
;
const char* SERVER_HEADER_VALUE = "TerminalWebServer " PROJECT_GIT_REVISION;
Connection::Connection(boost::asio::ip::tcp::socket socket, ConnectionManager &manager, request_handler handler)
: socket_(std::move(socket)), connection_manager_(manager), request_handler_(std::move(handler)), request_(false), reply_() {