From 6ca814e54e7126d6ffc5f60e12d711556be397f1 Mon Sep 17 00:00:00 2001 From: Sik Date: Tue, 8 Oct 2024 22:23:22 +0200 Subject: [PATCH] fix: detection of xml response type --- Web/API/Request.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/API/Request.cs b/Web/API/Request.cs index 05ac2f7..b695822 100644 --- a/Web/API/Request.cs +++ b/Web/API/Request.cs @@ -408,7 +408,7 @@ private async Task> Process(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);