You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2015/08/07 19:41:49 UTC
fauxton commit: updated refs/heads/master to a6431cc
Repository: couchdb-fauxton
Updated Branches:
refs/heads/master 7fec5cd2a -> a6431cc50
Pass the second param to beforeSend
I forgot to send this argument on which broke attachment uploading
COUCHDB-2762
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/a6431cc5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/a6431cc5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/a6431cc5
Branch: refs/heads/master
Commit: a6431cc501240c0fd2da1f38677b56356b550b3c
Parents: 7fec5cd
Author: Robert Newson <rn...@apache.org>
Authored: Thu Aug 6 17:00:25 2015 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Thu Aug 6 17:00:25 2015 +0100
----------------------------------------------------------------------
app/app.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/a6431cc5/app/app.js
----------------------------------------------------------------------
diff --git a/app/app.js b/app/app.js
index f33e6db..0679683 100644
--- a/app/app.js
+++ b/app/app.js
@@ -80,9 +80,9 @@ function (app, $, _, Backbone, Bootstrap, Helpers, Utils, FauxtonAPI, Couchdb) {
var cookies = parseCookies(document.cookie);
var csrf = cookies['CouchDB-CSRF'] ? cookies['CouchDB-CSRF'] : 'true';
var origBeforeSend = settings.beforeSend;
- var newBeforeSend = function (xhr) {
+ var newBeforeSend = function (xhr, o) {
if (origBeforeSend) {
- origBeforeSend(xhr);
+ origBeforeSend(xhr, o);
}
xhr.setRequestHeader('X-CouchDB-CSRF', csrf);
};