From 89e70359c4f4e23b71ec5d6249d98fe2ed97d9fc Mon Sep 17 00:00:00 2001 From: Alec Murphy Date: Sun, 23 Feb 2025 07:26:08 -0500 Subject: [PATCH] Slon/Modules/ActivityPub: Remove invalid newline when building headers for signing GET request --- Slon/Modules/ActivityPub.HC | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Slon/Modules/ActivityPub.HC b/Slon/Modules/ActivityPub.HC index 6730cee..24209e8 100644 --- a/Slon/Modules/ActivityPub.HC +++ b/Slon/Modules/ActivityPub.HC @@ -321,9 +321,9 @@ U0 @slon_activitypub_users_get(SlonHttpSession* session) } String.Append(scratch_buffer, "%s\n", url->path); String.Append(scratch_buffer, "host: %s\n", url->host); - String.Append(scratch_buffer, "date: %s\n", http_headers->@("Date")); + String.Append(scratch_buffer, "date: %s", http_headers->@("Date")); if (request_object) { - String.Append(scratch_buffer, "digest: %s\n", http_headers->@("Digest")); + String.Append(scratch_buffer, "\ndigest: %s\n", http_headers->@("Digest")); String.Append(scratch_buffer, "content-type: %s", http_headers->@("Content-Type")); }