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