NetSSL fixes for GH #1481, GH #1449

This commit is contained in:
Guenter Obiltschnig
2016-11-09 15:09:46 +01:00
parent aa18c7d338
commit 199a82cff9
5 changed files with 32 additions and 32 deletions

View File

@@ -48,7 +48,7 @@ void HTTPSStreamFactoryTest::testNoRedirect()
{
HTTPSTestServer server;
HTTPSStreamFactory factory;
URI uri("https://localhost/large");
URI uri("https://127.0.0.1/large");
uri.setPort(server.port());
std::auto_ptr<std::istream> pStr(factory.open(uri));
std::ostringstream ostr;
@@ -61,7 +61,7 @@ void HTTPSStreamFactoryTest::testEmptyPath()
{
HTTPSTestServer server;
HTTPSStreamFactory factory;
URI uri("https://localhost");
URI uri("https://127.0.0.1");
uri.setPort(server.port());
std::auto_ptr<std::istream> pStr(factory.open(uri));
std::ostringstream ostr;
@@ -74,7 +74,7 @@ void HTTPSStreamFactoryTest::testRedirect()
{
HTTPSTestServer server;
HTTPSStreamFactory factory;
URI uri("https://localhost/redirect");
URI uri("https://127.0.0.1/redirect");
uri.setPort(server.port());
std::auto_ptr<std::istream> pStr(factory.open(uri));
std::ostringstream ostr;
@@ -103,7 +103,7 @@ void HTTPSStreamFactoryTest::testError()
{
HTTPSTestServer server;
HTTPSStreamFactory factory;
URI uri("https://localhost/notfound");
URI uri("https://127.0.0.1/notfound");
uri.setPort(server.port());
try
{