From c8809ca3c3e494cef2437457bccb3d50070b11dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Guimar=C3=A3es?= Date: Fri, 23 Oct 2026 18:17:19 -0300 Subject: [PATCH] Allow larger response headers when downloading tailwind GitHub's release redirect now sends more than 10,240 bytes of headers, the default max_header_size of httpc on OTP 27 and later, so the download fails with {:header_too_long, {:max, 10240}}. Pass a larger max_header_size. --- lib/tailwind.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tailwind.ex b/lib/tailwind.ex index 2ef8835..e98e344 100644 --- a/lib/tailwind.ex +++ b/lib/tailwind.ex @@ -467,7 +467,7 @@ defmodule Tailwind do ] |> maybe_add_proxy_auth(scheme) - options = [body_format: :binary] + options = [body_format: :binary, max_header_size: 32_768] case {retry, :httpc.request(:get, {url, []}, http_options, options)} do {_, {:ok, {{_, 200, _}, _headers, body}}} ->