diff --git a/app/app.js b/app/app.js
index <HASH>..<HASH> 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);
     };
Pass the second param to beforeSend

I forgot to send this argument on which broke attachment uploading

COUCHDB-<I>