Allow setting basic auth with empty username

This commit is contained in:
Daniel Nelson 2018-02-15 18:22:49 -08:00
parent 5b37fd3ae9
commit 2ee270f274
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ func (h *HTTP) gatherURL(
} }
} }
if h.Username != "" { if h.Username != "" || h.Password != "" {
request.SetBasicAuth(h.Username, h.Password) request.SetBasicAuth(h.Username, h.Password)
} }