From: Alexander Ebert Date: Thu, 21 Jul 2016 12:50:25 +0000 (+0200) Subject: Ignore response type for anything but json X-Git-Tag: 3.0.0_Beta_1~1017 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=716c05a4ad7d95a0f76c10d94ee05e3e7e5c1625;p=GitHub%2FWoltLab%2FWCF.git Ignore response type for anything but json --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 24fe5f84dd..bf19636a53 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1507,6 +1507,7 @@ WCF.Action.Proxy = Class.extend({ data: options.data, type: options.type, url: options.url, + responseType: (options.dataType === 'json' ? 'application/json' : ''), autoAbort: options.autoAbortPrevious, ignoreError: options.suppressErrors,