You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/03/10 16:28:49 UTC
[camel] branch camel-2.20.x updated: CAMEL-12342 - Camel-weather:
freegeoip.io has been moved to freegeoip.net
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-2.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.20.x by this push:
new 1f93f1d CAMEL-12342 - Camel-weather: freegeoip.io has been moved to freegeoip.net
1f93f1d is described below
commit 1f93f1d887501bc3737a28b4ce46523e6402baf9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Sat Mar 10 17:25:52 2018 +0100
CAMEL-12342 - Camel-weather: freegeoip.io has been moved to freegeoip.net
---
.../component/weather/geolocation/FreeGeoIpGeoLocationProvider.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-weather/src/main/java/org/apache/camel/component/weather/geolocation/FreeGeoIpGeoLocationProvider.java b/components/camel-weather/src/main/java/org/apache/camel/component/weather/geolocation/FreeGeoIpGeoLocationProvider.java
index 1c32fb4..6c41bf3 100644
--- a/components/camel-weather/src/main/java/org/apache/camel/component/weather/geolocation/FreeGeoIpGeoLocationProvider.java
+++ b/components/camel-weather/src/main/java/org/apache/camel/component/weather/geolocation/FreeGeoIpGeoLocationProvider.java
@@ -37,7 +37,7 @@ public class FreeGeoIpGeoLocationProvider implements GeoLocationProvider {
@Override
public GeoLocation getCurrentGeoLocation() throws Exception {
HttpClient httpClient = component.getHttpClient();
- GetMethod getMethod = new GetMethod("https://freegeoip.io/json/");
+ GetMethod getMethod = new GetMethod("https://freegeoip.net/json/");
try {
int statusCode = httpClient.executeMethod(getMethod);
if (statusCode != HttpStatus.SC_OK) {
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.