We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 405cc87 commit 3df3517Copy full SHA for 3df3517
1 file changed
lib/remote_persistent_term/fetcher/s3.ex
@@ -209,9 +209,11 @@ defmodule RemotePersistentTerm.Fetcher.S3 do
209
end
210
211
defp header_value(headers, name) do
212
+ downcased = String.downcase(name)
213
+
214
Enum.find_value(headers, fn
215
{key, value} when is_binary(key) and is_binary(value) ->
- if key == name, do: value, else: nil
216
+ if String.downcase(key) == downcased, do: value, else: nil
217
218
_ ->
219
nil
0 commit comments