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

declare user agent string only once #493

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

sebsto
Copy link
Contributor

@sebsto sebsto commented Mar 6, 2025

The user-agent string was repeated at 5+ different places in the source code.
I defined it as a constant in the ControlPlaneRequest struct where other similar constant have been defined and make sure the rest of the code only uses that constant.

This should address #492

@sebsto sebsto added kind/enhancement Improvements to existing feature. 🔨 semver/patch No public API change. labels Mar 6, 2025
@sebsto sebsto requested a review from fabianfett March 6, 2025 15:09
@sebsto sebsto self-assigned this Mar 6, 2025
@sebsto sebsto merged commit bf02bce into swift-server:main Mar 6, 2025
30 of 31 checks passed
@fabianfett fabianfett added this to the 2.0 milestone Mar 6, 2025
@sebsto sebsto deleted the sebsto/user-agent branch March 6, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements to existing feature. 🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants