couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject fauxton commit: updated refs/heads/master to a6431cc
Date Fri, 07 Aug 2015 17:41:49 GMT
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 <rnewson@apache.org>
Authored: Thu Aug 6 17:00:25 2015 +0100
Committer: Robert Newson <rnewson@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);
     };


Mime
View raw message