1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Fixed qvalue in Accept-Language header

Using decimal point now.

Closes #696
This commit is contained in:
nowrep 2013-01-04 15:46:57 +01:00
parent 82ffaed2ad
commit 4fdebc7abe

View File

@ -55,7 +55,7 @@ QByteArray AcceptLanguage::generateHeader(const QStringList &langs)
int counter = 8; int counter = 8;
for (int i = 1; i < langs.count(); i++) { for (int i = 1; i < langs.count(); i++) {
QString s = ", " + langs.at(i) + ";q=0,"; QString s = ", " + langs.at(i) + ";q=0.";
s.append(QString::number(counter)); s.append(QString::number(counter));
if (counter != 2) { if (counter != 2) {
counter -= 2; counter -= 2;