diff --git a/lib/bandit/http1/socket.ex b/lib/bandit/http1/socket.ex index 57aec4a5..8ee93158 100644 --- a/lib/bandit/http1/socket.ex +++ b/lib/bandit/http1/socket.ex @@ -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