From e0e0eccf925e8ca6e39a629c675ef388a60588a3 Mon Sep 17 00:00:00 2001 From: Wave Dev <66224387+wavedevgit@users.noreply.github.com> Date: Thu, 12 Mar 2026 15:16:58 +0000 Subject: [PATCH] revert back accidentally removed comment --- DiscordChatExporter.Core/Discord/DiscordClient.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DiscordChatExporter.Core/Discord/DiscordClient.cs b/DiscordChatExporter.Core/Discord/DiscordClient.cs index bd13cb17..b036f2c5 100644 --- a/DiscordChatExporter.Core/Discord/DiscordClient.cs +++ b/DiscordChatExporter.Core/Discord/DiscordClient.cs @@ -37,7 +37,8 @@ public class DiscordClient( { using var request = new HttpRequestMessage(HttpMethod.Get, new Uri(_baseUri, url)); - // Authorization header + // Don't validate because the token can have special characters + // https://github.com/Tyrrrz/DiscordChatExporter/issues/828 request.Headers.TryAddWithoutValidation( "Authorization", tokenKind == TokenKind.Bot ? $"Bot {token}" : token