Skip to content

Commit

Permalink
Track conn value in Plug.Debugger.run_action/1 (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrudel authored May 17, 2024
1 parent 0574733 commit d0e3407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plug/debugger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ defmodule Plug.Debugger do

@doc false
def run_action(%Plug.Conn{} = conn) do
with %Plug.Conn{body_params: params} <- fetch_body_params(conn),
with %Plug.Conn{body_params: params} = conn <- fetch_body_params(conn),
{:ok, {module, function, args}} <-
Plug.Crypto.verify(conn.secret_key_base, @salt, params["encoded_handler"]) do
apply(module, function, args)
Expand Down

0 comments on commit d0e3407

Please sign in to comment.