From a251ecbec913e501de71ebc04b9bd5f992eacbc7 Mon Sep 17 00:00:00 2001 From: Dennis Beatty Date: Fri, 23 Oct 2026 21:12:42 +0000 Subject: [PATCH] Raise download response header limit to 64 KiB GitHub's release redirect headers exceed the 10 KiB limit enforced by recent OTP patches. Keep the download bounded while allowing these responses. --- lib/tailwind.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tailwind.ex b/lib/tailwind.ex index b46c4aa..c956410 100644 --- a/lib/tailwind.ex +++ b/lib/tailwind.ex @@ -467,7 +467,8 @@ defmodule Tailwind do ] |> maybe_add_proxy_auth(scheme) - options = [body_format: :binary] + # GitHub's release redirects can exceed httpc's default 10 KiB header limit. + options = [body_format: :binary, max_header_size: 64 * 1024] case {retry, :httpc.request(:get, {url, []}, http_options, options)} do {_, {:ok, {{_, 200, _}, _headers, body}}} ->