Skip to content

Commit

Permalink
Dialyzer fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrudel committed Aug 1, 2024
1 parent d8056ec commit ffdfee9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bandit/http1/socket.ex
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ defmodule Bandit.HTTP1.Socket do

def read_data(%@for{} = socket, _opts), do: {:ok, <<>>, socket}

@dialyzer {:no_improper_lists, do_read_content_length_data!: 4}
defp do_read_content_length_data!(socket, buffer, bytes_remaining, opts) do
max_desired_bytes = Keyword.get(opts, :length, 8_000_000)

Expand Down Expand Up @@ -235,6 +236,7 @@ defmodule Bandit.HTTP1.Socket do
end
end

@dialyzer {:no_improper_lists, do_read_chunked_data!: 5}
defp do_read_chunked_data!(socket, buffer, body, read_size, read_timeout) do
case :binary.split(buffer, "\r\n") do
["0", _] ->
Expand Down

0 comments on commit ffdfee9

Please sign in to comment.