Skip to content

Identify osm2pgsql-replication in user agent - #2512

Merged
joto merged 2 commits into
osm2pgsql-dev:masterfrom
lonvia:custom-user-agent
Nov 20, 2026
Merged

joto merged 2 commits into
osm2pgsql-dev:masterfrom
lonvia:custom-user-agent

Conversation

@lonvia

@lonvia lonvia commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Set a custom user agent for pyosmium to identify osm2pgsql-replication on top of pyosmium. See discussion in #2511. I don´t think there is much of a point allowing to set the UA per individual user.

@lonvia

lonvia commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

I've added a commit which switches the CI from using Geofabrik data to our own test data. The Github servers tend to get banned by Geofabrik these days, which is understandable. The test data will be static as it is not realistic to update a replication repository. The added advantage is that I could confirm that the right user agent arrives at the server.

Ready for review now.

@joto
joto merged commit 5c55f4c into osm2pgsql-dev:master Nov 20, 2026
24 checks passed
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.

2 participants