Skip to content

fix: add User-Agent header to Nominatim requests (fixes 403 Forbidden)#95

Open
AndreaG757 wants to merge 1 commit intoLucksi:masterfrom
AndreaG757:fix/nominatim-user-agent
Open

fix: add User-Agent header to Nominatim requests (fixes 403 Forbidden)#95
AndreaG757 wants to merge 1 commit intoLucksi:masterfrom
AndreaG757:fix/nominatim-user-agent

Conversation

@AndreaG757
Copy link
Copy Markdown

Nominatim was giving 403 Forbidden because the request was not including the User-Agent.

Fix: Changed urlopen(string) with urlopen(Request(..., headers={"User-Agent": ...})).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant