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

List:       kde-commits
Subject:    kdelibs/khtml/misc
From:       Waldo Bastian <bastian () kde ! org>
Date:       2004-10-20 12:06:55
Message-ID: 20041020120655.F356E16C85 () office ! kde ! org
[Download RAW message or body]

CVS commit by waba: 

Change Accept: header for image requests, instead of listing all formats
that we happen to support only list the most important ones, the rest is
still covered by */*
This fixes http://www.n-ergie.de which got confused by the previous long
header (no idea why though) and reduces the overal size of HTTP image
requests, which may help performance in some cases.


  M +1 -7      loader.cpp   1.176


--- kdelibs/khtml/misc/loader.cpp  #1.175:1.176
@@ -415,11 +415,5 @@ private:
 static QString buildAcceptHeader()
 {
-    QString result = KImageIO::mimeTypes( KImageIO::Reading ).join(", ");
-    if (result.endsWith(", "))
-        result.truncate(result.length()-2);
-    if ( !result.isEmpty() )
-        result += ";q=0.5";
-    result += ",*/*;q=0.1";
-    return result;
+    return "image/png, image/jpeg, video/x-mng, image/jp2, image/gif;q=0.5,*/*;q=0.1";
 }
 


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

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