Re: lftp-3.5.2rc1

"Alexander V. Lukyanov" <[email protected]> Wed, 26 Jul 2006 12:08:22 +0400
Newsgroups gmane.network.lftp.devel
Message-ID <[email protected]>
On Wed, Jul 26, 2006 at 09:45:46AM +1000, Grant Bayley wrote:
> Not sure if this came through on the main lftp list yesterday, but this 
> problem is in 3.5.1 and after some testing this morning, is still in 
> 3.5.2rc2. Specifically, it's not respecting the http:use-propfind setting, 
> as evidenced in the latter part of the log where it goes right ahead and 
> uses propfind instead of GET.

Please try this patch.

-- 
   Alexander.                      | software is knowlege
diff (text/plain, 559 B)
Index: Http.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/Http.cc,v
retrieving revision 1.215
diff -u -p -r1.215 Http.cc
--- Http.cc	6 Jul 2006 13:52:01 -0000	1.215
+++ Http.cc	26 Jul 2006 08:07:01 -0000
@@ -1944,6 +1944,7 @@ void Http::Reconfig(const char *name)
       proxy_port=xstrdup(HTTP_DEFAULT_PROXY_PORT);
 
    user_agent=ResMgr::Query("http:user-agent",c);
+   use_propfind_now=(use_propfind_now && QueryBool("use-propfind",c));
 }
 
 bool Http::SameSiteAs(const FileAccess *fa) const