From 4984d5c0034795f5ea5cf40d56a9d0e39bb9ab45 Mon Sep 17 00:00:00 2001 From: xukeawsl Date: Sat, 21 Sep 2024 04:01:45 +0000 Subject: [PATCH] style: Format coro_http_connection.hpp using clang-format-13 --- include/cinatra/coro_http_connection.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/cinatra/coro_http_connection.hpp b/include/cinatra/coro_http_connection.hpp index 0785ef47..cf66d459 100644 --- a/include/cinatra/coro_http_connection.hpp +++ b/include/cinatra/coro_http_connection.hpp @@ -681,14 +681,15 @@ class coro_http_connection head_buf_.consume(head_buf_.size()); std::span payload{}; auto payload_length = ws_.payload_length(); - + if (max_part_size_ != 0 && payload_length > max_part_size_) { std::string close_reason = "message_too_big"; std::string close_msg = ws_.format_close_payload( close_code::too_big, close_reason.data(), close_reason.size()); co_await write_websocket(close_msg, opcode::close); close(); - result.ec = std::error_code(asio::error::message_size, asio::error::get_system_category()); + result.ec = std::error_code(asio::error::message_size, + asio::error::get_system_category()); break; }