The API uses 'https' now.
This commit is contained in:
parent
3bddd7cf44
commit
cf3a52201c
@ -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
|
||||||
|
Reference in New Issue
Block a user