Skip to content

pyosmium-up-to-date: Add option --user-agent - #328

Merged
lonvia merged 1 commit into
osmcode:masterfrom
jocelynj:pyosmium-up-to-date-user-agent
Oct 27, 2026
Merged

lonvia merged 1 commit into
osmcode:masterfrom
jocelynj:pyosmium-up-to-date-user-agent

Conversation

@jocelynj

Copy link
Copy Markdown
Contributor

The new option doesn’t replace the whole User-Agent, to keep the pyosmium prefix, but I can change the code if you prefer to replace the whole field.

@jocelynj
jocelynj force-pushed the pyosmium-up-to-date-user-agent branch from 9a15b1c to 3acbe20 Compare October 26, 2026 21:52

@lonvia lonvia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do that. Do you mind adding the same option to pyosmium-get-changes as well for symmetry?

@jocelynj

Copy link
Copy Markdown
Contributor Author

No problem, I will do the change to pyosmium-get-changes too.

Is there any documentation to update too?

User-agent is then replaced by "pyosmium/{version} - VALUE".
@jocelynj
jocelynj force-pushed the pyosmium-up-to-date-user-agent branch from 3acbe20 to f304f57 Compare October 26, 2026 22:36
@lonvia

lonvia commented Oct 27, 2026

Copy link
Copy Markdown
Member

The documentation is auto-generated from the argparser and testing this kind of stuff is a bit tricky. So this is good to go. Thanks.

There should be another release with this change this year. It's waiting on the next libosmium release.

@lonvia
lonvia merged commit b54c5fa into osmcode:master Oct 27, 2026
29 checks passed
@jocelynj
jocelynj deleted the pyosmium-up-to-date-user-agent branch October 27, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants