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

List:       kde-commits
Subject:    KDE/kdelibs/kio/kio
From:       Thiago Macieira <thiago () kde ! org>
Date:       2010-10-01 8:25:57
Message-ID: 20101001082557.D22ECAC891 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1181483 by thiago:

Fix setting of Accept-Languages, or we get 400 Bad Request like this

QString += int  doesn't convert the int to its string
representation. Instead, we were adding ASCII 9, ASCII 8, ASCII 7,
etc. (\t, \010, \7), which the servers rightfully choke on.

This problem was introduced in commit 1180675.

 M  +1 -1      kprotocolmanager.cpp  


--- trunk/KDE/kdelibs/kio/kio/kprotocolmanager.cpp #1181482:1181483
@@ -723,7 +723,7 @@
       header += lang;
       if (prio < 10) {
           header += QL1S(";q=0.");
-          header += prio;
+          header += QString::number(prio);
       }
       // do not add cosmetic whitespace in here : it is less compatible (#220677)
       header += QL1S(",");
[prev in list] [next in list] [prev in thread] [next in thread] 

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