From f46910fac651bb353a8b88b4f4d7c01a8ae4cd16 Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 16 Jun 2025 00:52:10 +0200 Subject: [PATCH] Formatting --- API/MangaDownloadClients/HttpDownloadClient.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/API/MangaDownloadClients/HttpDownloadClient.cs b/API/MangaDownloadClients/HttpDownloadClient.cs index 5624948..ed9ee9f 100644 --- a/API/MangaDownloadClients/HttpDownloadClient.cs +++ b/API/MangaDownloadClients/HttpDownloadClient.cs @@ -38,13 +38,15 @@ internal class HttpDownloadClient : DownloadClient if (!response.IsSuccessStatusCode) { - Log.Debug($"Request returned status code {response.StatusCode}:\n" + - $"\tRequest:\n" + + Log.Debug($"Request returned status code {(int)response.StatusCode} {response.StatusCode}:\n" + + $"=====\n" + + $"Request:\n" + $"{requestMessage.Method} {requestMessage.RequestUri}\n" + $"{requestMessage.Version} {requestMessage.VersionPolicy}\n" + $"Headers:\n\t{string.Join("\n\t", requestMessage.Headers.Select(h => $"{h.Key}: <{string.Join(">, <", h.Value)}"))}>\n" + $"{requestMessage.Content?.ReadAsStringAsync().Result}" + - $"\tResponse:\n" + + $"=====\n" + + $"Response:\n" + $"{response.Version}\n" + $"Headers:\n\t{string.Join("\n\t", response.Headers.Select(h => $"{h.Key}: <{string.Join(">, <", h.Value)}"))}>\n" + $"{response.Content.ReadAsStringAsync().Result}");