🐛 Fix some issues in the singature verification

This commit is contained in:
2025-12-30 19:39:39 +08:00
parent 1d95d637dd
commit cfb4428e78

View File

@@ -256,15 +256,18 @@ public class ActivityPubSignatureService(
return string.Empty;
var sb = new StringBuilder();
var first = true;
foreach (var header in headers)
{
if (header == "content-type")
continue;
if (sb.Length > 0)
if (!first)
sb.Append('\n');
first = false;
sb.Append(header.ToLower());
sb.Append(": ");