This commit is contained in:
yhirose
2025-12-22 21:36:08 -05:00
parent 25688258ad
commit cdf0d33258
2 changed files with 18 additions and 3 deletions

View File

@@ -10924,6 +10924,18 @@ TEST(MakeHostAndPortStringTest, VariousPatterns) {
detail::make_host_and_port_string("example.com", 65536, false));
}
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
TEST(SSLClientHostHeaderTest, Issue2301) {
httplib::SSLClient cli("roblox.com", 443);
cli.set_follow_location(true);
auto res = cli.Get("/");
ASSERT_TRUE(res);
EXPECT_EQ(StatusCode::OK_200, res->status);
}
#endif
TEST(DirtyDataRequestTest, HeadFieldValueContains_CR_LF_NUL) {
Server svr;