[backend/core] Correctly serialize http signature signing string for headers that occur more than once

This commit is contained in:
Laura Hausmann 2024-02-17 17:54:49 +01:00
parent a56e9b2922
commit c0831c884b
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -113,7 +113,7 @@ public static class HttpSignature
{
"(request-target)" => $"{requestMethod.ToLowerInvariant()} {requestPath}",
"host" => $"{host ?? requestHeaders[header]}",
_ => requestHeaders[header]
_ => string.Join(", ", requestHeaders[header].AsEnumerable())
});
}