We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a3fb9 commit 9663e89Copy full SHA for 9663e89
src/WingetCreateCore/Common/PackageParser.cs
@@ -11,6 +11,7 @@ namespace Microsoft.WingetCreateCore
11
using System.IO;
12
using System.Linq;
13
using System.Net.Http;
14
+ using System.Net.Http.Headers;
15
using System.Security.Cryptography;
16
using System.Text.RegularExpressions;
17
using System.Threading.Tasks;
@@ -46,7 +47,13 @@ public static class PackageParser
46
47
"nullsoft",
48
};
49
- private static HttpClient httpClient = new HttpClient();
50
+ private static HttpClient httpClient = new()
51
+ {
52
+ DefaultRequestHeaders =
53
54
+ UserAgent = { new ProductInfoHeaderValue("WinGetCreate", Utils.GetEntryAssemblyVersion()) },
55
+ },
56
+ };
57
58
private enum MachineType
59
{
0 commit comments