make sure the unittest pass withouth SSL

This commit is contained in:
Benjamin Sergeant
2019-10-03 09:41:17 -07:00
parent 2c32f5c593
commit a383ac10d9
2 changed files with 7 additions and 1 deletions

View File

@ -50,6 +50,7 @@ TEST_CASE("http_client", "[http]")
REQUIRE(response->statusCode == 200);
}
#ifdef IXWEBSOCKET_USE_TLS
SECTION("Connect to a remote HTTPS server")
{
HttpClient httpClient;
@ -91,6 +92,7 @@ TEST_CASE("http_client", "[http]")
REQUIRE(response->errorCode == HttpErrorCode::Ok);
REQUIRE(response->statusCode == 200);
}
#endif
SECTION("Async API, one call")
{
@ -102,7 +104,7 @@ TEST_CASE("http_client", "[http]")
tlsOptions.caFile = "cacert.pem";
httpClient.setTLSOptions(tlsOptions);
std::string url("https://httpbin.org/");
std::string url("http://httpbin.org/");
auto args = httpClient.createRequest(url);
args->extraHeaders = headers;