revert back accidentally removed comment

This commit is contained in:
Wave Dev 2026-03-12 15:16:58 +00:00 committed by GitHub
parent 89a2dabf2d
commit e0e0eccf92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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