From 0ab4eac33311dac1f2c44d7aba0282d701e9d080 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 26 May 2024 21:12:35 -0700 Subject: [PATCH] =?UTF-8?q?Remove=20code=20that=20sets=20User-Agent=20head?= =?UTF-8?q?er=20=E2=80=94=C2=A0because=20it=E2=80=99s=20already=20set=20fo?= =?UTF-8?q?r=20the=20URLSession.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/Sources/Web/DownloadSession.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Sources/Web/DownloadSession.swift b/Web/Sources/Web/DownloadSession.swift index e160f772b..900642357 100755 --- a/Web/Sources/Web/DownloadSession.swift +++ b/Web/Sources/Web/DownloadSession.swift @@ -214,7 +214,7 @@ private extension DownloadSession { } } - requestToUse.addValue(UserAgent.fromInfoPlist, forHTTPHeaderField: HTTPRequestHeader.userAgent) + requestToUse.httpShouldHandleCookies = false let task = urlSession.dataTask(with: requestToUse)