Commit 7ab573c6 authored by Lee Brown's avatar Lee Brown

fix broken geonames url for download country postal codes

parent 794b20ff
......@@ -201,7 +201,7 @@ func (repo *Repository) GetGeonameCountry(ctx context.Context, country string) (
var err error
var resp *http.Response
u := fmt.Sprintf("http://download.geonames.org/export/zip/%s.zip", country)
u := fmt.Sprintf("http://www.geonames.org/export/zip/%s.zip", country)
h := fmt.Sprintf("%x", md5.Sum([]byte(u)))
cp := filepath.Join(os.TempDir(), h+".zip")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment