Skip to content

Commit

Permalink
Support Plug 0.13+
Browse files Browse the repository at this point in the history
  • Loading branch information
DevL committed Jun 6, 2015
1 parent 9052f93 commit 5098ad9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plug_require_header.ex
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ defmodule PlugRequireHeader do
conn
else
conn
|> put_resp_header("Content-Type", content_type_for(format))
|> put_resp_header("content-type", content_type_for(format))
|> send_resp(status, format_message(message, format))
|> halt
end
Expand Down
2 changes: 1 addition & 1 deletion test/plug_require_header_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ defmodule PlugRequireHeaderTest do
end

defp content_type(response) do
hd get_resp_header(response, "Content-Type")
hd get_resp_header(response, "content-type")
end
end

0 comments on commit 5098ad9

Please sign in to comment.