[backend/federation] Fix confusing log output in AuthorizedFetchMiddleware

This commit is contained in:
Laura Hausmann 2024-02-18 01:07:03 +01:00
parent b46e587132
commit bc7db3fab9
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -107,10 +107,9 @@ public class AuthorizedFetchMiddleware(
logger.LogDebug("Error validating HTTP signature: {error}", e.Message);
}
logger.LogDebug("Trying LD signature next...");
if (!verified && request is { ContentType: not null, ContentLength: > 0 })
{
logger.LogDebug("Trying LD signature next...");
try
{
var contentType = new MediaTypeHeaderValue(request.ContentType);