From 68a004b1adaccf4dd525e7a437e959c755666055 Mon Sep 17 00:00:00 2001 From: ncguilbeault Date: Mon, 12 Jan 2026 18:56:26 +0000 Subject: [PATCH] Added user-agent to request header --- tests/Bonsai.ML.Lds.Python.Tests/ReceptiveFieldSimpleCellTest.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Bonsai.ML.Lds.Python.Tests/ReceptiveFieldSimpleCellTest.cs b/tests/Bonsai.ML.Lds.Python.Tests/ReceptiveFieldSimpleCellTest.cs index 26188e3e..61de29a4 100644 --- a/tests/Bonsai.ML.Lds.Python.Tests/ReceptiveFieldSimpleCellTest.cs +++ b/tests/Bonsai.ML.Lds.Python.Tests/ReceptiveFieldSimpleCellTest.cs @@ -28,6 +28,7 @@ private static void DownloadData(string basePath) byte[] responseBytes; using (var httpClient = new HttpClient()) { + httpClient.DefaultRequestHeaders.Add("User-Agent", "Bonsai.ML.Tests"); responseBytes = httpClient.GetByteArrayAsync(zipFileUrl).Result; Console.WriteLine("File downloaded successfully."); }