camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-11301: Camel-weather and camel-geocoder: freegeoip.io/json has been moved permanently
Date Mon, 22 May 2017 06:37:04 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.18.x e938fab1a -> 045f40790


CAMEL-11301: Camel-weather and camel-geocoder: freegeoip.io/json has been moved permanently


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/045f4079
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/045f4079
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/045f4079

Branch: refs/heads/camel-2.18.x
Commit: 045f4079097cd72a55a89cadddeb22924117c674
Parents: e938fab
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Mon May 22 08:35:24 2017 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Mon May 22 08:36:45 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/component/geocoder/GeoCoderProducer.java | 2 +-
 .../weather/geolocation/FreeGeoIpGeoLocationProvider.java          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/045f4079/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderProducer.java
b/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderProducer.java
index 403d01a..8e2f480 100644
--- a/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderProducer.java
+++ b/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderProducer.java
@@ -98,7 +98,7 @@ public class GeoCoderProducer extends DefaultProducer {
 
     protected void processCurrentLocation(Exchange exchange) throws Exception {
         LOG.debug("Geocode for current address");
-        String json = exchange.getContext().getTypeConverter().mandatoryConvertTo(String.class,
new URL("http://freegeoip.net/json/"));
+        String json = exchange.getContext().getTypeConverter().mandatoryConvertTo(String.class,
new URL("https://freegeoip.net/json/"));
         if (isEmpty(json)) {
             throw new IllegalStateException("Got the unexpected value '" + json + "' for
the geolocation");
         }

http://git-wip-us.apache.org/repos/asf/camel/blob/045f4079/components/camel-weather/src/main/java/org/apache/camel/component/weather/geolocation/FreeGeoIpGeoLocationProvider.java
----------------------------------------------------------------------
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 0842194..cce7825 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
@@ -38,7 +38,7 @@ public class FreeGeoIpGeoLocationProvider implements GeoLocationProvider
{
     @Override
     public GeoLocation getCurrentGeoLocation() throws Exception {
         HttpClient httpClient = component.getHttpClient();
-        GetMethod getMethod = new GetMethod("http://freegeoip.io/json/");
+        GetMethod getMethod = new GetMethod("https://freegeoip.io/json/");
         try {
             int statusCode = httpClient.executeMethod(getMethod);
             if (statusCode != HttpStatus.SC_OK) {


Mime
View raw message