Ignore response type for anything but json
authorAlexander Ebert <ebert@woltlab.com>
Thu, 21 Jul 2016 12:50:25 +0000 (14:50 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 21 Jul 2016 12:50:25 +0000 (14:50 +0200)
wcfsetup/install/files/js/WCF.js

index 24fe5f84dd73c3da7ef53903d34df6bafd4ceca7..bf19636a5326438ca29fed4639a1f6c5d13d210a 100755 (executable)
@@ -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,