Skip to content

Commit

Permalink
Fix Authorisation Header (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Jamie-Ullerich <jamie.ullerich@ibm.com>
  • Loading branch information
Jamie-Ullerich authored Apr 25, 2024
1 parent 720f8df commit 52a98c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluent/client/ws_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (wcf *DefaultWSConnectionFactory) New() (ext.Conn, error) {
}

if wcf.AuthInfo != nil && len(wcf.AuthInfo.IAMToken()) > 0 {
header.Add(AuthorizationHeader, wcf.AuthInfo.IAMToken())
header.Set(AuthorizationHeader, wcf.AuthInfo.IAMToken())
}

if wcf.TLSConfig != nil {
Expand Down

0 comments on commit 52a98c7

Please sign in to comment.