diff --git a/lib/advent_of_code_cli/commands/download.rb b/lib/advent_of_code_cli/commands/download.rb index 1407fda..9f7707e 100644 --- a/lib/advent_of_code_cli/commands/download.rb +++ b/lib/advent_of_code_cli/commands/download.rb @@ -46,6 +46,9 @@ def fetch_input request = Net::HTTP::Get.new(url) request["Cookie"] = "session=#{cookie}" + # The creator of Advent of Code has requested that automated tools send identifying information + # when making requests: https://www.reddit.com/r/adventofcode/comments/z9dhtd + request["User-Agent"] = "github.com/egiurleo/advent_of_code_cli by emily.samp@icloud.com" response = https.request(request) response.read_body