chore: Enable most modernize checks (#7664)

This commit is contained in:
Ayaz Salikhov
2026-07-06 13:19:52 +01:00
committed by GitHub
parent c92285f10d
commit d07d2aba2e
46 changed files with 125 additions and 223 deletions

View File

@@ -370,10 +370,10 @@ public:
{std::istreambuf_iterator<char>(&header_)}, std::istreambuf_iterator<char>()};
JLOG(j_.trace()) << "Header: \"" << strHeader << "\"";
static boost::regex const kReStatus{"\\`HTTP/1\\S+ (\\d{3}) .*\\'"}; // HTTP/1.1 200 OK
static boost::regex const kReStatus{R"(\`HTTP/1\S+ (\d{3}) .*\')"}; // HTTP/1.1 200 OK
static boost::regex const kReSize{
"\\`.*\\r\\nContent-Length:\\s+([0-9]+).*\\'", boost::regex::icase};
static boost::regex const kReBody{"\\`.*\\r\\n\\r\\n(.*)\\'"};
R"(\`.*\r\nContent-Length:\s+([0-9]+).*\')", boost::regex::icase};
static boost::regex const kReBody{R"(\`.*\r\n\r\n(.*)\')"};
boost::smatch smMatch;
// Match status code.