Skip to content

Commit

Permalink
Add user agent string
Browse files Browse the repository at this point in the history
  • Loading branch information
zeevox authored and GreenLightning committed Dec 1, 2022
1 parent a316401 commit 9592190
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aocdl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ func download(config *configuration) error {
client := new(http.Client)

req, err := http.NewRequest("GET", fmt.Sprintf("https://adventofcode.com/%d/day/%d/input", config.Year, config.Day), nil)
req.Header.Set("User-Agent", "github.com/GreenLightning/advent-of-code-downloader")
if err != nil {
return err
}
Expand Down

0 comments on commit 9592190

Please sign in to comment.