1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 06:36:55 +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; var contentType;
if (settings.dataType === 'json') { if (settings.dataType === 'json') {
contentType = 'application/json'; contentType = 'application/json';
} else if (contentType === 'xml') { } else if (settings.dataType === 'xml') {
contentType = 'text/xml'; contentType = 'text/xml';
} else if (typeof xhr.getResponseHeader !== 'undefined') { } else if (typeof xhr.getResponseHeader !== 'undefined') {
contentType = xhr.getResponseHeader('Content-Type'); contentType = xhr.getResponseHeader('Content-Type');