aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2015-09-22 12:39:53 -0400
committerEric Reed <ebr@mediabrowser3.com>2015-09-22 12:41:09 -0400
commit253cfcd64bf7454517b130994f9072e483c0c8c1 (patch)
treee0c0288537791eed11edccf25838e9aaa10a74bd /MediaBrowser.Server.Implementations
parent86a084bf5e12956395785401f68c8596fbb708ee (diff)
Reroute some calls
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/Connect/ConnectManager.cs39
1 files changed, 27 insertions, 12 deletions
diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
index aab3a2121..f6e91528d 100644
--- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
+++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
@@ -1079,20 +1079,25 @@ namespace MediaBrowser.Server.Implementations.Connect
var url = GetConnectUrl("keyAssociation");
- url += "?serverId=" + ConnectServerId;
- url += "&supporterKey=" + _securityManager.SupporterKey;
-
var options = new HttpRequestOptions
{
Url = url,
CancellationToken = CancellationToken.None
};
+ var postData = new Dictionary<string, string>
+ {
+ {"serverId", ConnectServerId},
+ {"supporterKey", _securityManager.SupporterKey}
+ };
+
+ options.SetPostData(postData);
+
SetServerAccessToken(options);
SetApplicationHeader(options);
// No need to examine the response
- using (var stream = (await _httpClient.SendAsync(options, "GET").ConfigureAwait(false)).Content)
+ using (var stream = (await _httpClient.SendAsync(options, "POST").ConfigureAwait(false)).Content)
{
return _json.DeserializeFromStream<ConnectSupporterSummary>(stream);
}
@@ -1107,16 +1112,21 @@ namespace MediaBrowser.Server.Implementations.Connect
var url = GetConnectUrl("keyAssociation");
- url += "?serverId=" + ConnectServerId;
- url += "&supporterKey=" + _securityManager.SupporterKey;
- url += "&userId=" + id;
-
var options = new HttpRequestOptions
{
Url = url,
CancellationToken = CancellationToken.None
};
+ var postData = new Dictionary<string, string>
+ {
+ {"serverId", ConnectServerId},
+ {"supporterKey", _securityManager.SupporterKey},
+ {"userId", id}
+ };
+
+ options.SetPostData(postData);
+
SetServerAccessToken(options);
SetApplicationHeader(options);
@@ -1135,16 +1145,21 @@ namespace MediaBrowser.Server.Implementations.Connect
var url = GetConnectUrl("keyAssociation");
- url += "?serverId=" + ConnectServerId;
- url += "&supporterKey=" + _securityManager.SupporterKey;
- url += "&userId=" + id;
-
var options = new HttpRequestOptions
{
Url = url,
CancellationToken = CancellationToken.None
};
+ var postData = new Dictionary<string, string>
+ {
+ {"serverId", ConnectServerId},
+ {"supporterKey", _securityManager.SupporterKey},
+ {"userId", id}
+ };
+
+ options.SetPostData(postData);
+
SetServerAccessToken(options);
SetApplicationHeader(options);