From 70f7b432f1eb2249c47f37929668b038899080a2 Mon Sep 17 00:00:00 2001
From: Mitchell Hanberg <mitch@mitchellhanberg.com>
Date: Tue, 3 Dec 2024 12:52:39 -0500
Subject: [PATCH] fix: add public_key and ssl to extra_applications

chore: format
---
 lib/advent_of_code/input.ex | 9 +++++----
 mix.exs                     | 2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/lib/advent_of_code/input.ex b/lib/advent_of_code/input.ex
index 5edba2d..38a8fc8 100644
--- a/lib/advent_of_code/input.ex
+++ b/lib/advent_of_code/input.ex
@@ -50,10 +50,10 @@ defmodule AdventOfCode.Input do
   defp from_cache!(day, year), do: File.read!(cache_path(day, year))
 
   defp download!(day, year) do
-    {:ok, {{'HTTP/1.1', 200, 'OK'}, _, input}} =
+    {:ok, {{~c"HTTP/1.1", 200, ~c"OK"}, _, input}} =
       :httpc.request(
         :get,
-        {'https://adventofcode.com/#{year}/day/#{day}/input', headers()},
+        {~c"https://adventofcode.com/#{year}/day/#{day}/input", headers()},
         [],
         []
       )
@@ -84,7 +84,8 @@ defmodule AdventOfCode.Input do
 
   defp headers,
     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))}
+      {~c"user-agent",
+       ~c"github.com/mhanberg/advent-of-code-elixir-starter by aoc@mitchellhanberg.com"},
+      {~c"cookie", String.to_charlist("session=" <> Keyword.get(config(), :session_cookie))}
     ]
 end
diff --git a/mix.exs b/mix.exs
index 4116f66..017ffd1 100644
--- a/mix.exs
+++ b/mix.exs
@@ -14,7 +14,7 @@ defmodule AdventOfCode.MixProject do
   # Run "mix help compile.app" to learn about applications.
   def application do
     [
-      extra_applications: [:logger, :inets]
+      extra_applications: [:logger, :inets, :public_key, :ssl]
     ]
   end
 
-- 
2.43.0