aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2015-09-26 17:14:13 -0400
committerEric Reed <ebr@mediabrowser3.com>2015-09-26 17:14:13 -0400
commit33ab78155fd2442e275ec64a8390251fde1a139d (patch)
tree9ec19cf1b41e6560af48f3b0411b60e6f0081ade /MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
parente761d8141833dabc076a3a0c5f41505452ae2e2a (diff)
Add missing param
Diffstat (limited to 'MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs')
-rw-r--r--MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
index 18a0cf856..410611c8a 100644
--- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
+++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs
@@ -186,7 +186,7 @@ namespace MediaBrowser.Common.Implementations.Security
}
}
- public async Task<Boolean> RegisterAppStoreSale(string store, string application, string product,
+ public async Task<Boolean> RegisterAppStoreSale(string store, string application, string product, string feature,
string type, string storeId, string storeToken, string email, string amt)
{
var data = new Dictionary<string, string>()
@@ -194,6 +194,7 @@ namespace MediaBrowser.Common.Implementations.Security
{"store", store},
{"application", application},
{"product", product},
+ {"feature", feature},
{"type", type},
{"storeId", storeId},
{"token", storeToken},
@@ -201,9 +202,16 @@ namespace MediaBrowser.Common.Implementations.Security
{"amt", amt}
};
+ var options = new HttpRequestOptions()
+ {
+ Url = AppstoreRegUrl,
+ CancellationToken = CancellationToken.None
+ };
+ options.RequestHeaders.Add("X-Emby-Token", /*_appHost.SystemId*/ "08606E86D043");
+
try
{
- using (var json = await _httpClient.Post(AppstoreRegUrl, data, CancellationToken.None).ConfigureAwait(false))
+ using (var json = await _httpClient.Post(options, data).ConfigureAwait(false))
{
var reg = _jsonSerializer.DeserializeFromStream<RegRecord>(json);
if (!String.IsNullOrEmpty(reg.key))