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:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user