Skip to content

Commit

Permalink
Add : to end of basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
pwaller committed May 11, 2015
1 parent 23da23b commit 425abdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func ActionMain(c *cli.Context) {
headers.Set("Origin", origin)

if u.User != nil {
userPassBytes := []byte(u.User.String())
userPassBytes := []byte(u.User.String() + ":")
token := base64.StdEncoding.EncodeToString(userPassBytes)
headers.Set("Authorization", fmt.Sprintf("Basic %v", token))
u.User = nil
Expand Down

0 comments on commit 425abdc

Please sign in to comment.