From 46b253c58d1683b052cfadd4313b6a8313a5a745 Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Wed, 17 Apr 2024 17:06:44 +1200 Subject: [PATCH] prefer http1 for file uploads http2 file uploads were causing consistent errors due to the window size not being updated by the mint adapter https://github.com/elixir-tesla/tesla/issues/394 --- lib/nerves_hub_cli/api.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/nerves_hub_cli/api.ex b/lib/nerves_hub_cli/api.ex index a78d609..0559793 100644 --- a/lib/nerves_hub_cli/api.ex +++ b/lib/nerves_hub_cli/api.ex @@ -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