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 authored and jjcarstens committed Apr 17, 2024
1 parent c16a966 commit da97db8
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 @@ -112,7 +112,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 da97db8

Please sign in to comment.