From f974c5ddd10998dae0c8c566e7bfbec6b67a6868 Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 16 Jun 2025 00:49:27 +0200 Subject: [PATCH] header formatting (debug) HttpDownloadClient.cs --- API/MangaDownloadClients/HttpDownloadClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API/MangaDownloadClients/HttpDownloadClient.cs b/API/MangaDownloadClients/HttpDownloadClient.cs index 2bc0eb9..5624948 100644 --- a/API/MangaDownloadClients/HttpDownloadClient.cs +++ b/API/MangaDownloadClients/HttpDownloadClient.cs @@ -42,11 +42,11 @@ internal class HttpDownloadClient : DownloadClient $"\tRequest:\n" + $"{requestMessage.Method} {requestMessage.RequestUri}\n" + $"{requestMessage.Version} {requestMessage.VersionPolicy}\n" + - $"Headers:\n\t{string.Join("\n\t", requestMessage.Headers)}\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" + $"{response.Version}\n" + - $"Headers:\n\t{string.Join("\n\t", response.Headers)}\n" + + $"Headers:\n\t{string.Join("\n\t", response.Headers.Select(h => $"{h.Key}: <{string.Join(">, <", h.Value)}"))}>\n" + $"{response.Content.ReadAsStringAsync().Result}"); return new (response.StatusCode, null, Stream.Null); }