Skip to content

Commit

Permalink
Merge pull request #434 from MasashiYokota/fix-dialyzer-error
Browse files Browse the repository at this point in the history
Fix type error
  • Loading branch information
teamon authored Jan 29, 2021
2 parents 6bb307c + 342aa28 commit ffe84a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tesla/multipart.ex
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ defmodule Tesla.Multipart do
false -> headers
end

data = File.stream!(path, [:read], 2048)
data = File.stream!(path, [], 2048)
add_file_content(mp, data, filename, opts ++ [headers: headers])
end

Expand Down

0 comments on commit ffe84a6

Please sign in to comment.