VBB: Trust all HTTPS certificates, because the trust anchor is not known on older devices.

This commit is contained in:
Andreas Schildbach 2017-09-01 09:45:58 +02:00
parent de66342497
commit 14e33621af

View file

@ -46,6 +46,7 @@ public class VbbProvider extends AbstractHafasLegacyProvider {
setJsonGetStopsUseWeight(false);
setJsonNearbyLocationsEncoding(Charsets.UTF_8);
setClientType(null);
httpClient.setTrustAllCertificates(true);
}
private static final Pattern P_SPLIT_NAME_SU = Pattern.compile("(.*?)(?:\\s+\\((S|U|S\\+U)\\))?");