Skip to content

Commit

Permalink
Remove custom user-agent from gelengine downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
fgRuslan committed Aug 19, 2021
1 parent 7fdc9b3 commit 8897d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GelEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public override async void downloadImage(string url, string tags, bool keepOrigi
fullpath = fullpath.Substring(5);

using(WebClient wc = new WebClient()) {
wc.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; " +
"Windows NT 5.2; .NET CLR 1.0.3705;)");
//wc.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; " +
// "Windows NT 5.2; .NET CLR 1.0.3705;)");
try {
if (keepOriginalNames)
wc.DownloadFileAsync(new System.Uri(url), "./out/" + rating + FnameFromURL(url));
Expand Down

0 comments on commit 8897d47

Please sign in to comment.