mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
Add appropriate HTTP headers to repository requests (#1486)
This commit is contained in:
parent
6a01c8cc5b
commit
954ab4d8d6
1 changed files with 8 additions and 0 deletions
|
|
@ -37,10 +37,18 @@ internal class PluginRepository
|
||||||
Timeout = TimeSpan.FromSeconds(20),
|
Timeout = TimeSpan.FromSeconds(20),
|
||||||
DefaultRequestHeaders =
|
DefaultRequestHeaders =
|
||||||
{
|
{
|
||||||
|
Accept =
|
||||||
|
{
|
||||||
|
new MediaTypeWithQualityHeaderValue("application/json"),
|
||||||
|
},
|
||||||
CacheControl = new CacheControlHeaderValue
|
CacheControl = new CacheControlHeaderValue
|
||||||
{
|
{
|
||||||
NoCache = true,
|
NoCache = true,
|
||||||
},
|
},
|
||||||
|
UserAgent =
|
||||||
|
{
|
||||||
|
new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue