mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 08:33:48 +00:00
Spoof user agent seen in the wild.
The state of modern web sadly discourages being honest.
This commit is contained in:
@@ -887,7 +887,7 @@ std::string TracyLlm::FetchWebPage( const std::string& url )
|
||||
curl_easy_setopt( curl, CURLOPT_TIMEOUT, 10 );
|
||||
curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, WriteFn );
|
||||
curl_easy_setopt( curl, CURLOPT_WRITEDATA, &buf );
|
||||
curl_easy_setopt( curl, CURLOPT_USERAGENT, "Tracy Profiler" );
|
||||
curl_easy_setopt( curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36" );
|
||||
|
||||
auto res = curl_easy_perform( curl );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user