mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
use uncompressed version of mercurial package xml, because many proxyservers do not allow gzip encoding
This commit is contained in:
@@ -45,7 +45,6 @@ import sonia.scm.PlatformType;
|
|||||||
import sonia.scm.cache.Cache;
|
import sonia.scm.cache.Cache;
|
||||||
import sonia.scm.cache.CacheManager;
|
import sonia.scm.cache.CacheManager;
|
||||||
import sonia.scm.net.HttpClient;
|
import sonia.scm.net.HttpClient;
|
||||||
import sonia.scm.net.HttpRequest;
|
|
||||||
import sonia.scm.net.HttpResponse;
|
import sonia.scm.net.HttpResponse;
|
||||||
import sonia.scm.util.IOUtil;
|
import sonia.scm.util.IOUtil;
|
||||||
import sonia.scm.util.SystemUtil;
|
import sonia.scm.util.SystemUtil;
|
||||||
@@ -73,7 +72,7 @@ public class HgPackageReader
|
|||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
public static final String PACKAGEURL =
|
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 */
|
/** the logger for HgPackageReader */
|
||||||
private static final Logger logger =
|
private static final Logger logger =
|
||||||
@@ -223,11 +222,7 @@ public class HgPackageReader
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
HttpRequest request = new HttpRequest(PACKAGEURL);
|
HttpResponse response = httpClientProvider.get().get(PACKAGEURL);
|
||||||
|
|
||||||
request.setDecodeGZip(true);
|
|
||||||
|
|
||||||
HttpResponse response = httpClientProvider.get().get(request);
|
|
||||||
|
|
||||||
input = response.getContent();
|
input = response.getContent();
|
||||||
packages = JAXB.unmarshal(input, HgPackages.class);
|
packages = JAXB.unmarshal(input, HgPackages.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user