Skip to content

Commit

Permalink
Include details of websocket deflation error
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrudel committed Jan 30, 2025
1 parent 8f257f1 commit 2f55abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bandit/websocket/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ defmodule Bandit.WebSocket.Connection do

{:continue, connection}

{:error, _reason} ->
do_error(1007, "Deflation error", socket, connection)
{:error, reason} ->
do_error(1007, "Deflation error: #{inspect(reason)}", socket, connection)
end
end

Expand Down

0 comments on commit 2f55abc

Please sign in to comment.