Incorrect check against Content-Type instead of content-type in httpRequest #3992
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-replied-to
Indicates that the team has replied to the issue reported by the customer. Do not delete.
customer-reported
Issue is created by anyone that is not a collaborator in the repository.
Describe the bug
Incorrect check against Content-Type instead of content-type in httpRequest.
if (key.toLowerCase() === 'Content-Type')
should be
if (key.toLowerCase() === 'content-type')
Currently the check doesn't change content-type to Content-Type.
To Reproduce
Bug is in libraries/botbuilder-dialogs-adaptive/src/actions/httpRequest.ts at line 271
Expected behavior
The check should change content-type to Content-Type.
Additional context
Happy to submit a PR with the change.
The text was updated successfully, but these errors were encountered: