From f8516f2a8600ee47bc44e2f13499ee0ea4a12947 Mon Sep 17 00:00:00 2001 From: Enno Gottschalk Date: Tue, 13 Oct 2015 18:38:44 +0200 Subject: [PATCH] Fix bug in tomahawk.js#Tomahawk.ajax if dataType != "json" --- data/js/tomahawk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/js/tomahawk.js b/data/js/tomahawk.js index 4563f60ef..24d7e5ebd 100644 --- a/data/js/tomahawk.js +++ b/data/js/tomahawk.js @@ -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');