Slon/Modules/ActivityPub: Remove invalid newline when building headers for signing GET request

This commit is contained in:
Alec Murphy 2025-02-23 07:26:08 -05:00
parent d447744ac4
commit 89e70359c4

View file

@ -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"));
}