On Wed, Nov 10, 2004 at 02:58:10PM +0100, S?bastien DAUBIES wrote:
> Yes, I'm using the latest version (3.0.11)
> You didn't have the problem before ?
> You think it's a bug only with squid or with other http proxy ?

It is a bug in lftp. Please try this patch.

--
   Alexander.
Index: Http.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/Http.cc,v
retrieving revision 1.176
diff -u -p -r1.176 Http.cc
--- Http.cc     28 Oct 2004 06:23:33 -0000      1.176
+++ Http.cc     10 Nov 2004 14:27:39 -0000
@@ -570,6 +570,7 @@ void Http::SendRequest(const char *conne
       {
         SendMethod("PUT",efile);   // hope it would work
         Send("Content-length: 0\r\n");
+        pos=entity_size=0;
       }
       break;
 
@@ -1196,7 +1197,7 @@ int Http::Do()
                  }
                  return MOVED;
               }
-              else if(mode==STORE)
+              else if(mode==STORE || mode==MAKE_DIR)
               {
                  if((sent_eot || pos==entity_size) && H_20X(status_code))
                  {

Reply via email to