Skip to content

Feature: add odk-client header for prepanding to user-agent#1778

Open
sadiqkhoja wants to merge 1 commit intogetodk:masterfrom
sadiqkhoja:features/odk-client-header
Open

Feature: add odk-client header for prepanding to user-agent#1778
sadiqkhoja wants to merge 1 commit intogetodk:masterfrom
sadiqkhoja:features/odk-client-header

Conversation

@sadiqkhoja
Copy link
Contributor

@sadiqkhoja sadiqkhoja commented Mar 21, 2026

Addresses: getodk/central#1629 (comment)

What has been done to verify that this works as intended?

Added bunch of tests

Why is this the best possible solution? Were any other approaches considered?

Chrome doesn't allow modification to user-agent header, so adding support for a custom header is the only option.

My original proposal was to name it X-Odk-Client but X- prefix is no longer encouraged. So went with ODK-Client

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

No

Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.

No

Before submitting this PR, please make sure you have:

  • run make test and confirmed all checks still pass, or witnessed Github completing all checks with success
  • verified that any code from external sources are properly credited in comments or that everything is internally sourced

@sadiqkhoja sadiqkhoja marked this pull request as ready for review March 21, 2026 14:23
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