From 282fb41605efedf1c5705c384f34ca8ca2f2103e Mon Sep 17 00:00:00 2001 From: "kenneth@hexad.dk" Date: Sat, 28 Jul 2012 10:03:33 +0000 Subject: [PATCH] Update issue #671 Status: Fixed Now setting PreAuthenticate to "true" for all requests, that should speed things up a bit. git-svn-id: https://duplicati.googlecode.com/svn/trunk@1377 59da171f-624f-0410-aa54-27559c288bec --- Duplicati/Library/Backend/WEBDAV/WEBDAV.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Duplicati/Library/Backend/WEBDAV/WEBDAV.cs b/Duplicati/Library/Backend/WEBDAV/WEBDAV.cs index 29456d9d1..333a3fc50 100644 --- a/Duplicati/Library/Backend/WEBDAV/WEBDAV.cs +++ b/Duplicati/Library/Backend/WEBDAV/WEBDAV.cs @@ -319,7 +319,9 @@ namespace Duplicati.Library.Backend { System.Net.HttpWebRequest req = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(m_url + System.Web.HttpUtility.UrlEncode(remotename).Replace("+", "%20")); if (m_useIntegratedAuthentication) + { req.UseDefaultCredentials = true; + } else if (m_forceDigestAuthentication) { System.Net.CredentialCache cred = new System.Net.CredentialCache(); @@ -329,8 +331,9 @@ namespace Duplicati.Library.Backend else { req.Credentials = m_userInfo; - if (Library.Utility.Utility.IsClientLinux) - req.PreAuthenticate = true; //We need this under Mono for some reason + //We need this under Mono for some reason, + // and it appears some servers require this as well + req.PreAuthenticate = true; } req.KeepAlive = false;