1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

Update dependencies

This commit is contained in:
Toby Zerner
2017-07-08 21:50:54 +09:30
parent cbe49d6d07
commit 53aa4b94ba
2 changed files with 51 additions and 63 deletions

View File

@@ -17101,13 +17101,11 @@ System.register('flarum/App', ['flarum/utils/ItemList', 'flarum/components/Alert
// and clients support, then we'll send it as a POST request with the
// intended method specified in the X-HTTP-Method-Override header.
if (options.method !== 'GET' && options.method !== 'POST') {
(function () {
var method = options.method;
extend(options, 'config', function (result, xhr) {
return xhr.setRequestHeader('X-HTTP-Method-Override', method);
});
options.method = 'POST';
})();
var method = options.method;
extend(options, 'config', function (result, xhr) {
return xhr.setRequestHeader('X-HTTP-Method-Override', method);
});
options.method = 'POST';
}
// When we deserialize JSON data, if for some reason the server has provided