aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-02 22:30:05 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-02 22:30:05 -0400
commita3d553a7fbe93fe416c940e80d5e511a2d753f25 (patch)
tree1f26819204392827767875ee56bc46607948b264 /MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
parent6fd05670ac352d69a7044f5ebe9a2c5c9f1d76cf (diff)
set connect access token
Diffstat (limited to 'MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs')
-rw-r--r--MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
index 11a5cdf08..ffde10bfe 100644
--- a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
+++ b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
@@ -399,11 +399,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager
/// <returns>stream on success, null on failure</returns>
public async Task<Stream> Post(HttpRequestOptions options, Dictionary<string, string> postData)
{
- var strings = postData.Keys.Select(key => string.Format("{0}={1}", key, postData[key]));
- var postContent = string.Join("&", strings.ToArray());
-
- options.RequestContent = postContent;
- options.RequestContentType = "application/x-www-form-urlencoded";
+ options.SetPostData(postData);
var response = await Post(options).ConfigureAwait(false);