diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-09-06 14:42:21 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-09-06 14:42:21 -0400 |
| commit | 79cfbb17688a083eee3caeb88403659fa23774df (patch) | |
| tree | 5a081db2323ca296aeccd95ad42ace8e7934de1d /MediaBrowser.ApiInteraction | |
| parent | 3538789e46d3332a2f20cd6b3db13b2aa9fbe475 (diff) | |
Move userId to post data
Diffstat (limited to 'MediaBrowser.ApiInteraction')
| -rw-r--r-- | MediaBrowser.ApiInteraction/ApiClient.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.ApiInteraction/ApiClient.cs b/MediaBrowser.ApiInteraction/ApiClient.cs index 48f43e03be..f8c0dc761b 100644 --- a/MediaBrowser.ApiInteraction/ApiClient.cs +++ b/MediaBrowser.ApiInteraction/ApiClient.cs @@ -657,7 +657,9 @@ namespace MediaBrowser.ApiInteraction string url = ApiUrl + "/UserAuthentication?userId=" + userId;
url += "&dataformat=" + SerializationFormat.ToString();
- HttpContent content = new StringContent("password=" + password, Encoding.UTF8, "application/x-www-form-urlencoded");
+ string postContent = string.Format("userid={0}&password={1}", userId, password);
+
+ HttpContent content = new StringContent(postContent, Encoding.UTF8, "application/x-www-form-urlencoded");
HttpResponseMessage msg = await HttpClient.PostAsync(url, content).ConfigureAwait(false);
|
