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

List:       kde-commits
Subject:    KDE/kdelibs/kioslave/http
From:       Dawit Alemayehu <adawit () kde ! org>
Date:       2007-09-01 19:14:48
Message-ID: 1188674088.303133.4844.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 707403 by adawit:

- Do not assume that the server will send error pages on 4xx and 5xx response. Fixes 147812.

BUG:147812


 M  +8 -0      http.cpp  


--- trunk/KDE/kdelibs/kioslave/http/http.cpp #707402:707403
@@ -4399,6 +4399,14 @@
         closeCacheEntry();
   }
 
+  if (sz <= 1)
+  {
+    if (m_responseCode >= 500 && m_responseCode <= 599)
+      error(ERR_INTERNAL_SERVER, m_state.hostname);
+    else if (m_responseCode >= 400 && m_responseCode <= 499)
+      error(ERR_DOES_NOT_EXIST, m_state.hostname);
+  }
+
   if (!dataInternal)
     data( QByteArray() );
   return true;
[prev in list] [next in list] [prev in thread] [next in thread] 

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