Skip to content

Commit b170e11

Browse files
committed
Merge pull request #327 from broncha/patch1
geoplugin returns 206 for anonymous proxies
2 parents e911e0e + 629ec16 commit b170e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Geocoder/Provider/GeoPluginProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function executeQuery($query)
7676
throw new NoResultException(sprintf('Could not execute query %s', $query));
7777
}
7878

79-
if (!array_key_exists('geoplugin_status', $json) || (200 !== $json['geoplugin_status'])) {
79+
if (!array_key_exists('geoplugin_status', $json) || (200 !== $json['geoplugin_status'] && 206 !== $json['geoplugin_status'])) {
8080
throw new NoResultException(sprintf('Could not execute query %s', $query));
8181
}
8282

0 commit comments

Comments
 (0)