Allow setting basic auth with empty username

This commit is contained in:
Daniel Nelson
2018-02-15 19:05:36 -08:00
parent f664fef1f6
commit 027ff4e2dd
+1 -1
View File
@@ -150,7 +150,7 @@ func (h *HTTP) gatherURL(
}
}
if h.Username != "" {
if h.Username != "" || h.Password != "" {
request.SetBasicAuth(h.Username, h.Password)
}