update README

This commit is contained in:
Christoph Polcin
2018-06-19 08:43:13 +02:00
parent 2593a81bf0
commit c4c24955e1
2 changed files with 13 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ func (c *Client) req(method, path string, body io.Reader, intercept func(*http.R
intercept(r)
}
rs, err := c.c.Do(r)
rs, err := c.c.Do(r)
if rs.StatusCode == 401 && c.auth.Type() == "NoAuth" {
if strings.Index(rs.Header.Get("Www-Authenticate"), "Digest") > -1 {