From fa54b9a3d9c88e56834ebb1333102b128c44da0b Mon Sep 17 00:00:00 2001 From: Rohini Chandra <61837065+r14chandra@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:17:26 +0530 Subject: [PATCH] Ref-RHINENG-9596 Modify sensitiveField --- infrastructure/persistence/cloudconnector/cloudconnector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/persistence/cloudconnector/cloudconnector.go b/infrastructure/persistence/cloudconnector/cloudconnector.go index ce24f25b..63a8bef4 100644 --- a/infrastructure/persistence/cloudconnector/cloudconnector.go +++ b/infrastructure/persistence/cloudconnector/cloudconnector.go @@ -75,7 +75,7 @@ func (c *cloudConnectorClientImpl) SendMessage(ctx context.Context, orgID string resp, err := c.PostV2ConnectionsClientIdMessageWithBody(ctx, recipient, "application/json", bytes.NewReader(data), func(ctx context.Context, req *http.Request) error { req.Header.Set("x-rh-cloud-connector-org-id", orgID) - sensitiveField := "x-rh-cloud-connector-psk" + sensitiveField := "X-Rh-Cloud-Connector-Psk" filteredHeaders := make(http.Header) for key, values := range req.Header { if key != sensitiveField {