Skip to content

Commit

Permalink
Fix Plug.Conn.Status.reason_phrase/1 error message (#1131)
Browse files Browse the repository at this point in the history
The message referenced the atom `:unavailable_for_legal_reasons`,
but should read `:not_an_rfc_status_code`.
  • Loading branch information
jclem authored Feb 7, 2023
1 parent 0aded04 commit 69cb834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plug/conn/status.ex
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ defmodule Plug.Conn.Status do
MIX_ENV=dev mix deps.clean plug --build
Doing this will allow the use of the integer status code 998 as
well as the atom :unavailable_for_legal_reasons in many Plug functions.
well as the atom :not_an_rfc_status_code in many Plug functions.
For example:
put_status(conn, :not_an_rfc_status_code)
Expand Down

0 comments on commit 69cb834

Please sign in to comment.