Skip to content

Commit

Permalink
Merge pull request #24 from FrApp42/dev/main
Browse files Browse the repository at this point in the history
XML media type response fix
  • Loading branch information
sikelio authored Oct 8, 2024
2 parents 82ba313 + 67ffd2c commit b1b2984
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Web/API/Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ private async Task<Result<T>> Process<T>(HttpRequestMessage request)

switch (true)
{
case bool b when (MediaType.Contains("application/xml")):
case bool b when (MediaType.Contains("xml")):

Check warning on line 411 in Web/API/Request.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.
XmlSerializer xmlSerializer = new(typeof(T));
StringReader reader = new(ContentResponse);

Expand Down
2 changes: 1 addition & 1 deletion Web/Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<Company>FrenchyApps42</Company>
<PackageIcon>logo.png</PackageIcon>
<Version>1.2.1</Version>
<Version>1.2.2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit b1b2984

Please sign in to comment.