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