mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +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),
|
||||
DefaultRequestHeaders =
|
||||
{
|
||||
Accept =
|
||||
{
|
||||
new MediaTypeWithQualityHeaderValue("application/json"),
|
||||
},
|
||||
CacheControl = new CacheControlHeaderValue
|
||||
{
|
||||
NoCache = true,
|
||||
},
|
||||
UserAgent =
|
||||
{
|
||||
new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue