From 459e483b4e9f5f4a8284ef450733a215ba4ac334 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 30 Sep 2015 00:07:21 -0400 Subject: fix windows restart hang --- .../Security/PluginSecurityManager.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs') diff --git a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs index 39dd41356..c2725e9bf 100644 --- a/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs +++ b/MediaBrowser.Common.Implementations/Security/PluginSecurityManager.cs @@ -158,9 +158,14 @@ namespace MediaBrowser.Common.Implementations.Security return new SupporterInfo(); } - var url = MbAdmin.HttpsUrl + "/service/supporter/retrieve?key=" + key; + var data = new Dictionary + { + { "key", key }, + }; + + var url = MbAdmin.HttpsUrl + "/service/supporter/retrieve"; - using (var stream = await _httpClient.Get(url, CancellationToken.None).ConfigureAwait(false)) + using (var stream = await _httpClient.Post(url, data, CancellationToken.None).ConfigureAwait(false)) { var response = _jsonSerializer.DeserializeFromStream(stream); @@ -269,4 +274,4 @@ namespace MediaBrowser.Common.Implementations.Security _isMbSupporterInitialized = false; } } -} +} \ No newline at end of file -- cgit v1.2.3