From a3d553a7fbe93fe416c940e80d5e511a2d753f25 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 2 Sep 2014 22:30:05 -0400 Subject: set connect access token --- .../HttpClientManager/HttpClientManager.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs') 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 /// stream on success, null on failure public async Task Post(HttpRequestOptions options, Dictionary 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); -- cgit v1.2.3