fix(libhttp): 请求体大小限制可配置并超限返回 413 (P1-1)

This commit is contained in:
qing committed 2026-08-03 23:57:00 +08:00
1 parent b37bf255d9
commit da4957c52d
4 files changed
+36 -13

No files matched your search

+2
View File
@@ -6,6 +6,7 @@
#include <fstream>
#include <sstream>
#include <iomanip>
#include <optional>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <boost/beast/websocket/ssl.hpp>
@@ -112,6 +113,7 @@ private:
beast::flat_buffer buffer_;
beast::flat_buffer ws_buffer_;
http::request<http::string_body> request_;
std::optional<http::request_parser<http::string_body>> parser_;
HttpServer* server_;
bool ssl_enabled_;