Skip to content

Commit

Permalink
fix: detection of xml response type
Browse files Browse the repository at this point in the history
  • Loading branch information
sikelio committed Oct 8, 2024
1 parent d338888 commit 6ca814e
Showing 1 changed file with 1 addition and 1 deletion.
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")):
XmlSerializer xmlSerializer = new(typeof(T));
StringReader reader = new(ContentResponse);

Expand Down

0 comments on commit 6ca814e

Please sign in to comment.