Reroute some calls

This commit is contained in:
Eric Reed
2015-09-22 12:39:53 -04:00
parent 86a084bf5e
commit 253cfcd64b
2 changed files with 34 additions and 14 deletions

View File

@@ -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<string, string>
{
{ "key", key },
};
using (var stream = await _httpClient.Get(url, CancellationToken.None).ConfigureAwait(false))
var url = MbAdmin.HttpsUrl + "/service/supporter/retrieve";
using (var stream = await _httpClient.Post(url, data, CancellationToken.None).ConfigureAwait(false))
{
var response = _jsonSerializer.DeserializeFromStream<SuppporterInfoResponse>(stream);