mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 22:38:33 +01:00
fix detection of content type for non-native requests
This commit is contained in:
parent
eaad1f28df
commit
10fc1adf6e
@ -564,7 +564,7 @@ Tomahawk.ajax = function(url, settings) {
|
||||
contentType = 'application/json';
|
||||
} else if (contentType === 'xml') {
|
||||
contentType = 'text/xml';
|
||||
} else if (xhr.hasOwnProperty('getResponseHeader')) {
|
||||
} else if (typeof xhr.getResponseHeader !== 'undefined') {
|
||||
contentType = xhr.getResponseHeader('Content-Type');
|
||||
} else if (xhr.hasOwnProperty('contentType')) {
|
||||
contentType = xhr['contentType'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user