Skip to content

Commit

Permalink
reversed auth for easy multi-account on httpauth
Browse files Browse the repository at this point in the history
  • Loading branch information
vikbez committed Jul 29, 2015
1 parent 08cd451 commit 541b40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hfsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func download(file_url string) (string, error) {
defer file.Close()

req, err := http.NewRequest("GET", full_url, nil)
req.SetBasicAuth(_G.Config.User.Name, _G.UID)
req.SetBasicAuth(_G.UID, _G.Config.User.Name)
res, err := _G.HttpClient.Do(req)
defer res.Body.Close()
if res.StatusCode != 200 { return "", errors.New(res.Status) }
Expand Down

0 comments on commit 541b40e

Please sign in to comment.