From: Mitchell Hanberg <mitch@mitchellhanberg.com>
Date: Tue, 3 Dec 2024 17:52:39 +0000 (-0500)
Subject: fix: add public_key and ssl to extra_applications
X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=70f7b432f1eb2249c47f37929668b038899080a2;p=advent-of-code-24-elixir.git

fix: add public_key and ssl to extra_applications

chore: format
---

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