Skip to content

Commit

Permalink
Merge pull request #7 from peter-gribanov/url_https
Browse files Browse the repository at this point in the history
Use HTTPS link for download GeoLite2-City.mmdb
  • Loading branch information
peter-gribanov committed Feb 18, 2019
2 parents 9f36c22 + e4b7568 commit bb3cd97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ gpslab_geoip:

# URL for download new GeoIP database.
# It's a default value. You can change it.
url: 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz'
url: 'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz'

# Get model data in this locale
# It's a default value. You can change it.
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Configuration implements ConfigurationInterface
*
* gpslab_geoip:
* cache: '%kernel.cache_dir%/GeoLite2-City.mmdb'
* url: 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz'
* url: 'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz'
* locales: [ '%locale%' ]
*
* @return TreeBuilder
Expand All @@ -49,7 +49,7 @@ public function getConfigTreeBuilder()
->end()
->scalarNode('url')
->cannotBeEmpty()
->defaultValue('http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz')
->defaultValue('https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz')
->end()
->arrayNode('locales')
->treatNullLike([])
Expand Down
2 changes: 1 addition & 1 deletion tests/DependencyInjection/GpsLabGeoIP2ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testLoad()

$this->assertEquals('%kernel.cache_dir%/GeoLite2-City.mmdb', $container->getParameter('geoip2.cache'));
$this->assertEquals(
'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz',
'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz',
$container->getParameter('geoip2.url')
);
$this->assertEquals(['%locale%'], $container->getParameter('geoip2.locales'));
Expand Down

0 comments on commit bb3cd97

Please sign in to comment.