mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-23 03:24:15 +02:00
Formatting
This commit is contained in:
@ -38,13 +38,15 @@ internal class HttpDownloadClient : DownloadClient
|
|||||||
|
|
||||||
if (!response.IsSuccessStatusCode)
|
if (!response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
Log.Debug($"Request returned status code {response.StatusCode}:\n" +
|
Log.Debug($"Request returned status code {(int)response.StatusCode} {response.StatusCode}:\n" +
|
||||||
$"\tRequest:\n" +
|
$"=====\n" +
|
||||||
|
$"Request:\n" +
|
||||||
$"{requestMessage.Method} {requestMessage.RequestUri}\n" +
|
$"{requestMessage.Method} {requestMessage.RequestUri}\n" +
|
||||||
$"{requestMessage.Version} {requestMessage.VersionPolicy}\n" +
|
$"{requestMessage.Version} {requestMessage.VersionPolicy}\n" +
|
||||||
$"Headers:\n\t{string.Join("\n\t", requestMessage.Headers.Select(h => $"{h.Key}: <{string.Join(">, <", h.Value)}"))}>\n" +
|
$"Headers:\n\t{string.Join("\n\t", requestMessage.Headers.Select(h => $"{h.Key}: <{string.Join(">, <", h.Value)}"))}>\n" +
|
||||||
$"{requestMessage.Content?.ReadAsStringAsync().Result}" +
|
$"{requestMessage.Content?.ReadAsStringAsync().Result}" +
|
||||||
$"\tResponse:\n" +
|
$"=====\n" +
|
||||||
|
$"Response:\n" +
|
||||||
$"{response.Version}\n" +
|
$"{response.Version}\n" +
|
||||||
$"Headers:\n\t{string.Join("\n\t", response.Headers.Select(h => $"{h.Key}: <{string.Join(">, <", h.Value)}"))}>\n" +
|
$"Headers:\n\t{string.Join("\n\t", response.Headers.Select(h => $"{h.Key}: <{string.Join(">, <", h.Value)}"))}>\n" +
|
||||||
$"{response.Content.ReadAsStringAsync().Result}");
|
$"{response.Content.ReadAsStringAsync().Result}");
|
||||||
|
Reference in New Issue
Block a user