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

List:       kde-commits
Subject:    kdelibs/kioslave/http
From:       Hamish Rodda <rodda () kde ! org>
Date:       2003-11-14 7:17:30
[Download RAW message or body]

CVS commit by rodda: 

Fix for bug 66339: webdavs move and copy to/from the same host fail.

Thanks for the great report :)  I didn't know about ssldump...

CCMAIL:66339-done@bugs.kde.org
CCMAIL:ovi@physics.utoronto.ca


  M +13 -7     http.cc   1.598


--- kdelibs/kioslave/http/http.cc  #1.597:1.598
@@ -1189,7 +1189,10 @@ void HTTPProtocol::copy( const KURL& src
     return;
 
-  // destination has to be "http://..."
+  // destination has to be "http(s)://..."
   KURL newDest = dest;
-  newDest.setProtocol( "http" );
+  if (newDest.protocol() == "webdavs")
+    newDest.setProtocol("https");
+  else
+    newDest.setProtocol("http");
 
   m_request.method = DAV_COPY;
@@ -1220,5 +1223,8 @@ void HTTPProtocol::rename( const KURL& s
   // destination has to be "http://..."
   KURL newDest = dest;
-  newDest.setProtocol( "http" );
+  if (newDest.protocol() == "webdavs")
+    newDest.setProtocol("https");
+  else
+    newDest.setProtocol("http");
 
   m_request.method = DAV_MOVE;


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

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