🐛 Fix some issues in the singature verification
This commit is contained in:
@@ -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(": ");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user