public/js/api.js in cyclid-ui-0.1.1 vs public/js/api.js in cyclid-ui-0.2.0
- old
+ new
@@ -19,9 +19,10 @@
function api_put(url, data, username, success, error) {
$.ajax({
type: 'PUT',
url: encodeURI(url),
data: JSON.stringify(data),
+ dataType: 'text',
contentType: 'application/json',
crossDomain: true,
beforeSend: function(xhr) {
var token = Cookies.get('cyclid.token');
var authorization = `Token ${username}:${token}`