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

List:       kde-commits
Subject:    kdelibs/kioslave/http
From:       Waldo Bastian <bastian () kde ! org>
Date:       2005-03-31 13:47:19
Message-ID: 20050331134719.4CD564A6 () office ! kde ! org
[Download RAW message or body]

CVS commit by waba: 

Don't close connection on 304 Not Modified
BUG: 88007


  M +6 -5      http.cc   1.643


--- kdelibs/kioslave/http/http.cc  #1.642:1.643
@@ -3409,9 +3409,4 @@ try_again:
   }
 
-  // Do not do a keep-alive connection if the size of the
-  // response is not known and the response is not Chunked.
-  if (!m_bChunked && m_iSize == NO_SIZE)
-    m_bKeepAlive = false;
-
   if (m_request.bMustRevalidate)
   {
@@ -3449,4 +3444,10 @@ try_again:
     goto try_again;
   }
+
+  // Do not do a keep-alive connection if the size of the
+  // response is not known and the response is not Chunked.
+  if (!m_bChunked && (m_iSize == NO_SIZE))
+    m_bKeepAlive = false;
+
   if ( m_responseCode == 204 )
   {


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

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