-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Core] Fix User-Agent header value issue #36385
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
Conversation
This fixes Azure#36383. Parenthesis are only valid to denote comments. This PR update our user agent strings to remove the OS "product" and add OS information as comments to the platform version instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR consolidates OS information into runtime version strings for user agent reporting across multiple packages, improving consistency and readability. The changes unify the format to follow a standard pattern: runtime/version (OS details).
Key changes:
- Merged separate OS and runtime version entries into a single combined string format
- Updated format from
key-value-keypattern to parentheticalversion (OS info)pattern - Removed standalone "OS" map entries across all platform implementations
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/servicebus/service-bus/src/util/runtimeInfo.ts | Refactored to combine runtime and OS info; added Bun/Deno runtime detection |
| sdk/servicebus/service-bus/src/util/runtimeInfo-react-native.mts | Simplified to combine react-native version with OS info in parentheses |
| sdk/core/ts-http-runtime/src/util/userAgentPlatform.ts | Combined runtime version with OS info, removed separate OS entry |
| sdk/core/ts-http-runtime/src/util/userAgentPlatform-react-native.mts | Combined react-native version with OS info, removed separate OS entry |
| sdk/core/ts-http-runtime/src/util/userAgentPlatform-browser.mts | Combined browser version with OS info, removed separate OS entry |
| sdk/core/core-rest-pipeline/src/util/userAgentPlatform.ts | Combined runtime version with OS info, removed separate OS entry |
| sdk/core/core-rest-pipeline/src/util/userAgentPlatform-react-native.mts | Combined react-native version with OS info, removed separate OS entry |
| sdk/core/core-rest-pipeline/src/util/userAgentPlatform-browser.mts | Combined browser version with OS info, removed separate OS entry |
| sdk/core/ts-http-runtime/test/node/userAgentPlatform.spec.ts | Updated tests to verify combined format and removed OS-only assertions |
| sdk/core/ts-http-runtime/test/browser/userAgentPlatform.spec.ts | Removed test for standalone OS entry |
| sdk/core/core-rest-pipeline/test/node/userAgentPlatform.spec.ts | Updated tests to verify combined format and removed OS-only assertions |
| sdk/core/core-rest-pipeline/test/browser/userAgentPlatform.spec.ts | Removed test for standalone OS entry |
Co-authored-by: Copilot <[email protected]>
|
@microsoft-github-policy-service rerun |
This fixes #36383.
Parentheses are only valid to denote comments according to RFC 9110. This PR updates our user agent strings to remove the OS "product" and add OS information as comments to the platform version instead.