From e5d59e834e9ee44669549b4020a6be46f9de19c2 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Fri, 20 May 2022 12:43:37 +0200 Subject: [PATCH] chore: update the user-agent used for measuring (#746) See https://github.com/ooni/probe/issues/2100 --- internal/engine/httpheader/useragent.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/engine/httpheader/useragent.go b/internal/engine/httpheader/useragent.go index 4a96779637..e9fed9b09d 100644 --- a/internal/engine/httpheader/useragent.go +++ b/internal/engine/httpheader/useragent.go @@ -3,8 +3,8 @@ package httpheader // UserAgent returns the User-Agent header used for measuring. func UserAgent() string { - // 7.6% as of Apr 12, 2022 according to https://techblog.willshouse.com/2012/01/03/most-common-user-agents/ - const ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0" + // 13.7% as of May 20, 2022 according to https://techblog.willshouse.com/2012/01/03/most-common-user-agents/ + const ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" return ua } @@ -12,5 +12,5 @@ func UserAgent() string { // pretent to be a command line HTTP client. func CLIUserAgent() string { // here we always put the latest version of cURL. - return "curl/7.82.0" + return "curl/7.83.1" }