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

.Net: Broaden Response ContentType Checking Logic #5642

Merged
merged 6 commits into from
Mar 27, 2024

Conversation

ppotash
Copy link
Contributor

@ppotash ppotash commented Mar 25, 2024

Motivation and Context

Fix issue opened here #5636

Description

Change strict string comparison to BeginsWith check.

Contribution Checklist

previous strict string matching did not properly match all intended strings (ie `ContentType` is actually `application/json; charset=utf-8`), so we change to this slightly broader comparison
@ppotash ppotash requested a review from a team as a code owner March 25, 2024 20:44
@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Mar 25, 2024
@github-actions github-actions bot changed the title Broaden Response ContentType Checking Logic .Net: Broaden Response ContentType Checking Logic Mar 25, 2024
@ppotash
Copy link
Contributor Author

ppotash commented Mar 25, 2024

I'm going to change back to Draft as I look into adding a test case for my scenario.

@ppotash ppotash marked this pull request as draft March 25, 2024 20:56
@ppotash ppotash marked this pull request as ready for review March 26, 2024 00:22
@ppotash
Copy link
Contributor Author

ppotash commented Mar 26, 2024

publishing PR after adding Unit Tests

@markwallace-microsoft markwallace-microsoft added this pull request to the merge queue Mar 27, 2024
Merged via the queue into microsoft:main with commit a947617 Mar 27, 2024
18 checks passed
LudoCorporateShark pushed a commit to LudoCorporateShark/semantic-kernel that referenced this pull request Aug 25, 2024
### Motivation and Context

Fix issue opened here
microsoft#5636

### Description

Change strict string comparison to `BeginsWith` check.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

---------

Co-authored-by: Lee Miller <lemiller@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants