Skip to content

Commit

Permalink
chore: update the user-agent used for measuring
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed May 20, 2022
1 parent f626a01 commit 0dab8ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/engine/httpheader/useragent.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ 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
}

// CLIUserAgent returns the User-Agent used when we want to
// 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"
}

0 comments on commit 0dab8ee

Please sign in to comment.