From 976dcbaf471e244e7bff864dc8df6896d508ed26 Mon Sep 17 00:00:00 2001 From: Aaron Tinio Date: Sat, 24 Oct 2026 09:07:34 +0800 Subject: [PATCH] Raise httpc's header limit for archive downloads GitHub's release-download redirects now send about 11 KB of response headers, most of it a content-security-policy. That exceeds the 10 KiB max_header_size httpc enforces by default in recent Erlang/OTP patch releases, so precompiled XLA archive downloads fail with header_too_long. Raise the limit to 64 KiB for these requests. --- lib/xla/utils.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xla/utils.ex b/lib/xla/utils.ex index 9c25a04..743cb79 100644 --- a/lib/xla/utils.ex +++ b/lib/xla/utils.ex @@ -33,7 +33,7 @@ defmodule XLA.Utils do end end - opts = [stream: :self, sync: false, receiver: receiver] + opts = [stream: :self, sync: false, receiver: receiver, max_header_size: 65_536] {:ok, request_id} = :httpc.request(:get, request, http_opts, opts, :xla)