switch authentication to json content type

This commit is contained in:
LukePulverenti 2013-03-08 13:13:06 -05:00
parent 713636a007
commit bbba73bc6f

View File

@ -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"
});
},
/**