Add appropriate HTTP headers to repository requests (#1486)

This commit is contained in:
Anna 2023-10-11 22:41:13 -04:00 committed by GitHub
parent 6a01c8cc5b
commit 954ab4d8d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,10 +37,18 @@ internal class PluginRepository
Timeout = TimeSpan.FromSeconds(20),
DefaultRequestHeaders =
{
Accept =
{
new MediaTypeWithQualityHeaderValue("application/json"),
},
CacheControl = new CacheControlHeaderValue
{
NoCache = true,
},
UserAgent =
{
new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion),
},
},
};