func (c *Client) addAuthHeader(req *http.Request) { if c.HasAuthCredentials() { req.SetBasicAuth("username", c.password) } }