Added UserAgent to zip downloads.

This commit is contained in:
Assistant 2020-01-23 16:47:19 -08:00
parent 2da74c454b
commit a1c3b111c2

View file

@ -364,7 +364,9 @@ namespace ModAssistant.Pages
private byte[] DownloadMod (string link)
{
byte[] zip = new WebClient().DownloadData(link);
WebClient webClient = new WebClient();
webClient.Headers.Add("user-agent", "ModAssistant/" + App.Version);
byte[] zip = webClient.DownloadData(link);
return zip;
}