adding some code (#28236)

This commit is contained in:
JMGoldsmith
2024-08-30 18:19:25 +02:00
committed by GitHub
parent bb5f658c57
commit 9ba5437ab5

View File

@@ -120,6 +120,11 @@ func hashResponse(ctx context.Context, salter Salter, resp *response, hmacAccess
fn := salt.GetIdentifiedHMAC
err = hashAuth(ctx, salter, resp.Auth, hmacAccessor)
if err != nil {
return err
}
if resp.Data != nil {
if b, ok := resp.Data[logical.HTTPRawBody].([]byte); ok {
resp.Data[logical.HTTPRawBody] = string(b)