Skip to content

Commit

Permalink
logcli client: use OrgID in LiveTail (#1850)
Browse files Browse the repository at this point in the history
Signed-off-by: Schlotter, Christian <christi.schlotter@gmail.com>
  • Loading branch information
chrischdi authored Mar 26, 2020
1 parent 00ee652 commit 57023e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/logcli/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ func (c *Client) wsConnect(path string, quiet bool) (*websocket.Conn, error) {

h := http.Header{"Authorization": {"Basic " + base64.StdEncoding.EncodeToString([]byte(c.Username+":"+c.Password))}}

if c.OrgID != "" {
h.Set("X-Scope-OrgID", c.OrgID)
}

ws := websocket.Dialer{
TLSClientConfig: tlsConfig,
}
Expand Down

0 comments on commit 57023e0

Please sign in to comment.