The API uses 'https' now.

This commit is contained in:
Brian Buller 2018-11-05 06:32:18 -06:00
parent 3bddd7cf44
commit cf3a52201c
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ func getAoCLeaderboard(boardId string) (*Leaderboard, error) {
leaderboard := new(Leaderboard)
client := &http.Client{}
boardString := fmt.Sprintf("http://adventofcode.com/%d/leaderboard/private/view/%s.json", aocYear, boardId)
boardString := fmt.Sprintf("https://adventofcode.com/%d/leaderboard/private/view/%s.json", aocYear, boardId)
req, err = http.NewRequest("GET", boardString, nil)
// Read in cookies