1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

Fix bug in tomahawk.js#Tomahawk.ajax if dataType != "json"

This commit is contained in:
Enno Gottschalk
2015-10-13 18:38:44 +02:00
parent f89439a46a
commit f8516f2a86

View File

@@ -659,7 +659,7 @@ Tomahawk.ajax = function (url, settings) {
var contentType;
if (settings.dataType === 'json') {
contentType = 'application/json';
} else if (contentType === 'xml') {
} else if (settings.dataType === 'xml') {
contentType = 'text/xml';
} else if (typeof xhr.getResponseHeader !== 'undefined') {
contentType = xhr.getResponseHeader('Content-Type');