# HG changeset patch # User Sebastien Jodogne # Date 1504077306 -7200 # Node ID 883387e2b37964e2bcfe469f1b343795823e42b9 # Parent 74d0953a3681071bafc61b46ac21ca694e55e0a9 remove dependendy upon ULg Montefiore Web server diff -r 74d0953a3681 -r 883387e2b379 UnitTestsSources/LuaTests.cpp --- a/UnitTestsSources/LuaTests.cpp Wed Aug 30 09:04:14 2017 +0200 +++ b/UnitTestsSources/LuaTests.cpp Wed Aug 30 09:15:06 2017 +0200 @@ -288,11 +288,10 @@ Orthanc::LuaContext lua; #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 - // It is not guaranteed that the URL on server - // "www.montefiore.ulg.ac.be" will work forever. We switched to it, - // as the "www.orthanc-server.com" now mandatory uses HTTPS. - const std::string BASE = "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/"; - //const std::string BASE = "http://www.orthanc-server.com/downloads/third-party/"; + // The "http://www.orthanc-server.com/downloads/third-party/" does + // not automatically redirect to HTTPS, so we cas use it even if the + // OpenSSL/HTTPS support is disabled in curl + const std::string BASE = "http://www.orthanc-server.com/downloads/third-party/"; lua.Execute("JSON = loadstring(HttpGet('" + BASE + "JSON.lua')) ()"); const std::string url(BASE + "Product.json"); diff -r 74d0953a3681 -r 883387e2b379 UnitTestsSources/RestApiTests.cpp --- a/UnitTestsSources/RestApiTests.cpp Wed Aug 30 09:04:14 2017 +0200 +++ b/UnitTestsSources/RestApiTests.cpp Wed Aug 30 09:15:06 2017 +0200 @@ -66,11 +66,10 @@ ASSERT_FALSE(c.IsVerbose()); #if UNIT_TESTS_WITH_HTTP_CONNEXIONS == 1 - // It is not guaranteed that the URL on server - // "www.montefiore.ulg.ac.be" will work forever. We switched to it, - // as the "www.orthanc-server.com" now mandatory uses HTTPS. - const std::string BASE = "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/"; - //const std::string BASE = "http://www.orthanc-server.com/downloads/third-party/"; + // The "http://www.orthanc-server.com/downloads/third-party/" does + // not automatically redirect to HTTPS, so we cas use it even if the + // OpenSSL/HTTPS support is disabled in curl + const std::string BASE = "http://www.orthanc-server.com/downloads/third-party/"; Json::Value v; c.SetUrl(BASE + "Product.json");