[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kioslave/http
From:       Hamish Rodda <rodda () kde ! org>
Date:       2005-12-28 9:25:19
Message-ID: 1135761919.714862.28263.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 491972 by rodda:

It seems that the content must be retrieved, in order to not confuse the
actual put function.


 M  +3 -5      http.cc  


--- branches/KDE/3.5/kdelibs/kioslave/http/http.cc #491971:491972
@@ -1255,9 +1255,6 @@
 
   // Webdav hosts are capable of observing overwrite == false
   if (!overwrite && m_protocol.left(6) == "webdav") {
-    UDSEntry entry;
-    UDSAtom atom;
-
     // check to make sure this host supports WebDAV
     if ( !davHostOk() )
       return;
@@ -1280,13 +1277,14 @@
     m_request.doProxy = m_bUseProxy;
     m_request.davData.depth = 0;
 
-    if (!retrieveHeader(false))
-      return;
+    retrieveContent(true);
 
     if (m_responseCode == 207) {
       error(ERR_FILE_ALREADY_EXIST, QString::null);
       return;
     }
+
+    m_bError = false;
   }
 
   m_request.method = HTTP_PUT;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic