-
Notifications
You must be signed in to change notification settings - Fork 283
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
fix: consistent user-agent handling #3060
Conversation
dfedc88
to
1c5b0b3
Compare
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.
Co-authored-by: Steven Gum <[email protected]>
@@ -1461,11 +1460,6 @@ export class BotFrameworkAdapter | |||
return client; | |||
} | |||
|
|||
/** |
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.
Note: docs for private methods are not required.
}); | ||
|
||
// Resolve any user request policy factories, then includes our user agent via a factory policy | ||
options.requestPolicyFactories = (defaultRequestPolicyFactories) => { |
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.
This is some convoluted logic to handle all the edge cases in the tests while simply enabling the disabled test. The order of policies is important as the userAgentPolicy
handler will not override an existing use
Fixes #2082