fix clang format

This commit is contained in:
oscar.chen 2022-05-14 17:54:21 -07:00
parent 4daf126df0
commit aaeaf9922e
2 changed files with 2 additions and 2 deletions

View File

@ -474,7 +474,7 @@ namespace crow
std::uint8_t timeout_{5};
uint16_t port_ = 80;
uint16_t concurrency_ = 2;
uint64_t max_payload_{ UINT64_MAX };
uint64_t max_payload_{ UINT64_MAX };
bool validated_ = false;
std::string server_name_ = std::string("Crow/") + VERSION;
std::string bindaddr_ = "0.0.0.0";

View File

@ -392,7 +392,7 @@ namespace crow
void handle_upgrade(const request& req, response&, SocketAdaptor&& adaptor) override
{
auto* conn = new crow::websocket::Connection<SocketAdaptor, App>(req, std::move(adaptor), app_, open_handler_, message_handler_, close_handler_, error_handler_, accept_handler_);
conn->set_max_payload_size(max_payload_);
conn->set_max_payload_size(max_payload_);
}
#ifdef CROW_ENABLE_SSL
void handle_upgrade(const request& req, response&, SSLAdaptor&& adaptor) override