* Add user-agent for automated input requests
* Update lib/advent_of_code/input.ex
Co-authored-by: Mitchell Hanberg <mitch@mitchellhanberg.com>
defp allow_network?, do: Keyword.get(config(), :allow_network?, false)
defp headers,
- do: [{'cookie', String.to_charlist("session=" <> Keyword.get(config(), :session_cookie))}]
+ do: [
+ {'user-agent', 'github.com/mhanberg/advent-of-code-elixir-starter by aoc@mitchellhanberg.com'},
+ {'cookie', String.to_charlist("session=" <> Keyword.get(config(), :session_cookie))}
+ ]
end