[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:       2010-11-17 7:43:23
Message-ID: 20101117074323.1C992AC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1197953 by adawit:

Do nothing in fixupResponseMimeType when the mimetype is empty

 M  +4 -0      http.cpp  


--- trunk/KDE/kdelibs/kioslave/http/http.cpp #1197952:1197953
@@ -2250,6 +2250,7 @@
             // start a new cache file later if appropriate
             m_request.cacheTag.ioMode = WriteToCache;
         }
+        break;
     }
     case HTTP_HEAD:
         break;
@@ -2592,6 +2593,9 @@
 
 void HTTPProtocol::fixupResponseMimetype()
 {
+    if (m_mimeType.isEmpty())
+        return;
+
     kDebug(7113) << "before fixup" << m_mimeType;
     // Convert some common mimetypes to standard mimetypes
     if (m_mimeType == QLatin1String("application/x-targz"))
[prev in list] [next in list] [prev in thread] [next in thread] 

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