From 86c08ef21d3dbc032859bbfb116c92216895457c Mon Sep 17 00:00:00 2001 From: Alexandre Catarino Date: Wed, 6 May 2026 15:01:46 +0100 Subject: [PATCH] Respect caller-provided User-Agent in Api.DownloadBytes Skip setting the default "QCAlgorithm.Download(): User Agent Header" when the caller already supplied a User-Agent in the headers dictionary. The check uses HttpRequestHeaders.Contains, which matches header names case-insensitively per the HTTP spec. Co-Authored-By: Claude Opus 4.7 (1M context) --- Api/Api.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Api/Api.cs b/Api/Api.cs index f606ca24e830..30d5f0773208 100644 --- a/Api/Api.cs +++ b/Api/Api.cs @@ -1043,9 +1043,6 @@ public virtual byte[] DownloadBytes(string address, IEnumerable