Fix geocoder.ip('me')
Ref:
@@ -17,8 +17,9 @@ class Ipinfo(Base):
def __init__(self, location='', **kwargs):
self.location = location
- if location.lower() == 'me':
- self.location = ''
+ if location.lower() == 'me' or location == '':
+ self.url = 'http://ipinfo.io/json'
+ else:
self.url = 'http://ipinfo.io/{0}/json'.format(self.location)
self._initialize(**kwargs)
