1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-28 18:19:42 +01:00

encode "+" character in url in VkConnection::makeRequest

This commit is contained in:
Ivan Leontiev 2014-10-28 20:12:01 +03:00
parent 88a6300509
commit 3d124a2dea

View File

@ -93,7 +93,7 @@ QNetworkRequest VkConnection::makeRequest(const QString& method,
QUrl url = kApiUrl;
url.setPath(url.path() % QLatin1Literal("/") % method);
for (auto it = args.constBegin(); it != args.constEnd(); ++it) {
url.addQueryItem(it.key(), it.value().toString());
url.addEncodedQueryItem(QUrl::toPercentEncoding(it.key()), QUrl::toPercentEncoding(it.value().toString()));
}
url.addEncodedQueryItem("access_token", access_token_);
return QNetworkRequest(url);