Skip to content

Commit

Permalink
Silently eat Bandit.TransportError errors during HTTP/1 error fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrudel committed Dec 18, 2024
1 parent 7c7dcae commit 674b278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bandit/http1/socket.ex
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ defmodule Bandit.HTTP1.Socket do
try do
send_headers(socket, status, [], :no_body)
rescue
Bandit.HTTPError -> :ok
_e in [Bandit.TransportError, Bandit.HTTPError] -> :ok
end
end
end
Expand Down

0 comments on commit 674b278

Please sign in to comment.