Skip to content

Commit

Permalink
Fix Google Image Search #420
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTheMan827 authored Mar 15, 2022
1 parent 46a79ec commit f6d65f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controls/ImageGoogler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static string[] GetImageUrls(string query, string additionalVariables = "
Trace.WriteLine("Web request: " + url);
var request = WebRequest.Create(url);
request.Credentials = CredentialCache.DefaultCredentials;
(request as HttpWebRequest).UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36";
(request as HttpWebRequest).UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0";
request.Timeout = 10000;
var response = request.GetResponse();
Stream dataStream = response.GetResponseStream();
Expand Down

0 comments on commit f6d65f4

Please sign in to comment.