mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Fixed #14
This commit is contained in:
parent
5f1ff58ed2
commit
2a45bdcd3b
2 changed files with 34 additions and 12 deletions
10
test/test.cc
10
test/test.cc
|
@ -357,6 +357,16 @@ TEST_F(ServerTestWithAI_PASSIVE, GetMethod200)
|
|||
EXPECT_EQ("Hello World!", res->body);
|
||||
}
|
||||
|
||||
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||
TEST(SSLClientTest, ServerNameIndication)
|
||||
{
|
||||
SSLClient cli("httpbin.org", 443);
|
||||
auto res = cli.get("/get");
|
||||
ASSERT_TRUE(res != nullptr);
|
||||
ASSERT_EQ(200, res->status);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
TEST(CleanupTest, WSACleanup)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue