testing basic auth

This commit is contained in:
jackspirou 2015-11-20 19:42:41 -06:00
parent d9380902f2
commit baf99f7c9e
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ func main() {
// set basic auth if a user or user and pass is provided
if len(vargs.Auth.Username) > 0 {
fmt.Println("setting basic auth")
if len(vargs.Auth.Password) > 0 {
req.SetBasicAuth(vargs.Auth.Username, vargs.Auth.Password)
} else {