diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-08 13:13:06 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-08 13:13:06 -0500 |
| commit | bbba73bc6f297cb134c82a96d1899522e7c1e6aa (patch) | |
| tree | 3695d942a6974fa96f5d98c50c97e07f817f0377 | |
| parent | 713636a00730f14f0bf219484896adf50a7fa629 (diff) | |
switch authentication to json content type
| -rw-r--r-- | MediaBrowser.Api/Javascript/ApiClient.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Javascript/ApiClient.js b/MediaBrowser.Api/Javascript/ApiClient.js index a57722e50..08082c389 100644 --- a/MediaBrowser.Api/Javascript/ApiClient.js +++ b/MediaBrowser.Api/Javascript/ApiClient.js @@ -1066,7 +1066,14 @@ var ApiClient = { if (password) { postData.password = password; } - return $.post(url, postData); + + return $.ajax({ + type: "POST", + url: url, + data: JSON.stringify(postData), + dataType: "json", + contentType: "application/json" + }); }, /** |
