1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-17 22:38:33 +01:00

Fix typos.

This commit is contained in:
Thierry Goeckel 2015-01-19 17:25:46 +01:00 committed by Dominik Schmidt
parent 7c5afd8029
commit d7517d8f6d

View File

@ -515,7 +515,7 @@ Tomahawk.ajax = function(url, settings) {
var contentType; var contentType;
if (settings.dataType === 'json') { if (settings.dataType === 'json') {
contentType = 'application/json'; contentType = 'application/json';
} else if (contentType = 'xml') { } else if (contentType === 'xml') {
contentType = 'text/xml'; contentType = 'text/xml';
} else { } else {
contentType = xhr.getResponseHeader('Content-Type'); contentType = xhr.getResponseHeader('Content-Type');
@ -539,7 +539,7 @@ Tomahawk.post = function(url, settings) {
settings = url; settings = url;
} else { } else {
settings = settings || {}; settings = settings || {};
settings: url; settings.url = url;
} }
settings.method = 'POST'; settings.method = 'POST';