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