Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version to User-Agent #60

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Add version to User-Agent #60

merged 1 commit into from
Dec 19, 2023

Conversation

ReillyBrogan
Copy link
Contributor

@ReillyBrogan ReillyBrogan commented Dec 19, 2023

The HTTP User-Agent specification requires that the user-agent has a version in it. Let's add this to hopefully improve success of this client with HTTP servers that require it.

Also, since we now reference the version from multiple places let's move configuration of it to the makefile and not have to duplicate references to it. Create a util package to avoid having to introduce a circular dependency (or to have it in the source package where it doesn't make sense)

@ReillyBrogan ReillyBrogan changed the title Add version Add version to User-Agent Dec 19, 2023
@ReillyBrogan ReillyBrogan added the backport-me Backport to stable release label Dec 19, 2023
The [HTTP User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) specification requires that the user-agent has a version in it. Let's add this to hopefully improve success of this client with HTTP servers that require it.

Also, since we now reference the version from multiple places let's move configuration of it to the makefile and not have to duplicate references to it. Create a util package to avoid having to introduce a circular dependency (or to have it in the source package where it doesn't make sense)

Signed-off-by: Reilly Brogan <[email protected]>
Copy link
Member

@EbonJaeger EbonJaeger left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@ReillyBrogan ReillyBrogan merged commit dca6dc0 into master Dec 19, 2023
1 check passed
@ReillyBrogan ReillyBrogan deleted the add-version branch December 20, 2023 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-me Backport to stable release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants