Better debug output for downloads in WebDAV mode

This commit is contained in:
Dan Stillman 2009-12-15 08:51:47 +00:00
parent 2edda44b12
commit 85826ba2f1
2 changed files with 6 additions and 3 deletions

View file

@ -367,13 +367,17 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.downloadFile = function (request) {
}
);
Zotero.debug('Saving with saveURI()');
// Don't display password in console
var disp = uri.clone();
if (disp.password) {
disp.password = '********';
}
Zotero.debug('Saving ' + disp.spec + ' with saveURI()');
const nsIWBP = Components.interfaces.nsIWebBrowserPersist;
var wbp = Components
.classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"]
.createInstance(nsIWBP);
wbp.persistFlags = nsIWBP.PERSIST_FLAGS_BYPASS_CACHE;
wbp.progressListener = listener;
wbp.saveURI(uri, null, null, null, null, destFile);
}

View file

@ -256,7 +256,6 @@ Zotero.Sync.Storage.Session.ZFS.prototype.downloadFile = function (request) {
if (disp.password) {
disp.password = "********";
}
Zotero.debug('Saving ' + disp.spec + ' with saveURI()');
const nsIWBP = Components.interfaces.nsIWebBrowserPersist;
var wbp = Components