mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
merge with branch issue-162
This commit is contained in:
@@ -45,7 +45,6 @@ import sonia.scm.PlatformType;
|
||||
import sonia.scm.cache.Cache;
|
||||
import sonia.scm.cache.CacheManager;
|
||||
import sonia.scm.net.HttpClient;
|
||||
import sonia.scm.net.HttpRequest;
|
||||
import sonia.scm.net.HttpResponse;
|
||||
import sonia.scm.util.IOUtil;
|
||||
import sonia.scm.util.SystemUtil;
|
||||
@@ -73,7 +72,7 @@ public class HgPackageReader
|
||||
|
||||
/** Field description */
|
||||
public static final String PACKAGEURL =
|
||||
"http://download.scm-manager.org/pkg/mercurial/packages.xml.gz";
|
||||
"http://download.scm-manager.org/pkg/mercurial/packages.xml";
|
||||
|
||||
/** the logger for HgPackageReader */
|
||||
private static final Logger logger =
|
||||
@@ -223,18 +222,14 @@ public class HgPackageReader
|
||||
|
||||
try
|
||||
{
|
||||
HttpRequest request = new HttpRequest(PACKAGEURL);
|
||||
|
||||
request.setDecodeGZip(true);
|
||||
|
||||
HttpResponse response = httpClientProvider.get().get(request);
|
||||
HttpResponse response = httpClientProvider.get().get(PACKAGEURL);
|
||||
|
||||
input = response.getContent();
|
||||
packages = JAXB.unmarshal(input, HgPackages.class);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
logger.error("could not read HgPackages from {}", PACKAGEURL);
|
||||
logger.error("could not read HgPackages from ".concat(PACKAGEURL), ex);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user