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:
parent
88a6300509
commit
3d124a2dea
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user