Skip to content

Commit

Permalink
prefer http1 for file uploads
Browse files Browse the repository at this point in the history
http2 file uploads were causing consistent errors due to the window size not being updated by the mint adapter

elixir-tesla/tesla#394
  • Loading branch information
joshk committed Apr 17, 2024
1 parent 853dd8d commit 46b253c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/nerves_hub_cli/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ defmodule NervesHubCLI.API do

[
ssl_options: ssl_options,
recv_timeout: 60_000
recv_timeout: 60_000,
protocols: [:http1],
timeout: 300_000
]
end

Expand Down

0 comments on commit 46b253c

Please sign in to comment.