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

fix-805-change-GetValues-to-TryGetValues-when-parsing-content-type-header #806

Conversation

KillTrot
Copy link
Contributor

@KillTrot KillTrot commented Apr 9, 2024

What does this PR do?

The DotNet SDK has a bug where the SDK throws an InvalidOperationException if the "Content-Type" header is not present in the response from Appwrite. This is the case if you for example delete a document.
This PR changes the code to use TryGetValues which returns a boolean if it could successfully parse the header.

Fixes #805

Test Plan

I checked out the repository of the dotnet-sdk, made the proposed changes and tested.

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

I read the Contributing Guidelines

@stnguyen90
Copy link
Contributor

@adityaoberai, would you be able to help review?

@abnegate abnegate merged commit e32a6da into appwrite:master May 3, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: DotNet sdk throws InvalidOperationException when answer from API has no content
4 participants