Skip to content

Commit 52a98c7

Browse files
Fix Authorisation Header (#65)
Signed-off-by: Jamie-Ullerich <jamie.ullerich@ibm.com>
1 parent 720f8df commit 52a98c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluent/client/ws_client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (wcf *DefaultWSConnectionFactory) New() (ext.Conn, error) {
112112
}
113113

114114
if wcf.AuthInfo != nil && len(wcf.AuthInfo.IAMToken()) > 0 {
115-
header.Add(AuthorizationHeader, wcf.AuthInfo.IAMToken())
115+
header.Set(AuthorizationHeader, wcf.AuthInfo.IAMToken())
116116
}
117117

118118
if wcf.TLSConfig != nil {

0 commit comments

Comments
 (0)