From 20b8a7490668cade1995aff81022f64b2121bfee Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 21 Oct 2023 09:37:57 +0100 Subject: [PATCH] global: use correct user-agent. --- Library/Homebrew/global.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index c3d00b2322f50..3597cfe82f5d4 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -47,7 +47,9 @@ HOMEBREW_USER_AGENT_RUBY = "#{ENV.fetch("HOMEBREW_USER_AGENT")} ruby/#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" HOMEBREW_USER_AGENT_FAKE_SAFARI = - "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_0) AppleWebKit/605.1.15 " \ + # Don't update this beyond 10.15.7 until Safari actually updates their + # user agent to be beyond 10.15.7 (not the case as-of macOS 14) + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 " \ "(KHTML, like Gecko) Version/17.0 Safari/605.1.15" HOMEBREW_GITHUB_PACKAGES_AUTH = ENV.fetch("HOMEBREW_GITHUB_PACKAGES_AUTH").freeze