The API uses 'https' now.

This commit is contained in:
Brian Buller 2018-11-05 06:32:18 -06:00
parent 3bddd7cf44
commit cf3a52201c

View File

@ -251,7 +251,7 @@ func getAoCLeaderboard(boardId string) (*Leaderboard, error) {
leaderboard := new(Leaderboard) leaderboard := new(Leaderboard)
client := &http.Client{} 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) req, err = http.NewRequest("GET", boardString, nil)
// Read in cookies // Read in cookies