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 d95a4b7 commit e8e0f09Copy full SHA for e8e0f09
lib/tmate/util/json_api.ex
@@ -32,7 +32,7 @@ defmodule Tmate.Util.JsonApi do
32
end
33
34
def process_response(%Response{headers: headers, body: body} = response) do
35
- content_type_hdr = Enum.find(headers, fn {name, _} -> name == "content-type" end)
+ content_type_hdr = Enum.find(headers, fn {name, _} -> String.downcase(name) == "content-type" end)
36
body = case content_type_hdr do
37
{_, "application/json" <> _} -> Jason.decode!(body)
38
_ -> body
0 commit comments