projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5544d
)
Ignore response type for anything but json
author
Alexander Ebert
<ebert@woltlab.com>
Thu, 21 Jul 2016 12:50:25 +0000
(14:50 +0200)
committer
Alexander Ebert
<ebert@woltlab.com>
Thu, 21 Jul 2016 12:50:25 +0000
(14:50 +0200)
wcfsetup/install/files/js/WCF.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.js
b/wcfsetup/install/files/js/WCF.js
index 24fe5f84dd73c3da7ef53903d34df6bafd4ceca7..bf19636a5326438ca29fed4639a1f6c5d13d210a 100755
(executable)
--- 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,