Skip to content

Commit 3d853d6

Browse files
committed
Fix build error
1 parent 7ccf861 commit 3d853d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9972,6 +9972,7 @@ TEST(RedirectTest, RedirectToUrlWithPlusInQueryParameters) {
99729972
}
99739973
}
99749974

9975+
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
99759976
TEST(RedirectTest, Issue2185) {
99769977
SSLClient client("github.com");
99779978
client.set_follow_location(true);
@@ -9983,6 +9984,7 @@ TEST(RedirectTest, Issue2185) {
99839984
EXPECT_EQ(StatusCode::OK_200, res->status);
99849985
EXPECT_EQ(9920427U, res->body.size());
99859986
}
9987+
#endif
99869988

99879989
TEST(VulnerabilityTest, CRLFInjection) {
99889990
Server svr;

0 commit comments

Comments
 (0)