mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-08 21:45:14 +12:00
Added UserAgent to zip downloads.
This commit is contained in:
parent
2da74c454b
commit
a1c3b111c2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue