We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb5935 commit f7a22c4Copy full SHA for f7a22c4
priv/rest_json.ex.eex
@@ -24,9 +24,9 @@ defmodule <%= context.module_name %> do
24
{"<%= parameter.location_name %>", "<%= parameter.name %>"},<% end %>
25
]
26
|> Enum.reduce(body, fn {header_name, key}, acc ->
27
- case response.headers[header_name] do
+ case List.keyfind(response.headers, header_name, 0) do
28
nil -> acc
29
- value -> Map.put(acc, key, value)
+ {_header_name, value} -> Map.put(acc, key, value)
30
end
31
end)
32
@@ -54,9 +54,9 @@ defmodule <%= context.module_name %> do
54
55
56
57
58
59
60
61
62
0 commit comments