1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-27 18:12:41 +01:00

Fix loading of songs from Dropbox that have # in the name.

Fixes issue 
This commit is contained in:
John Maguire 2013-05-16 16:40:32 +02:00
parent c6068b16c9
commit cea41801db

View File

@ -150,7 +150,8 @@ void DropboxService::RequestFileListFinished(QNetworkReply* reply) {
}
QNetworkReply* DropboxService::FetchContentUrl(const QUrl& url) {
QUrl request_url(QString(kMediaEndpoint) + url.path());
QUrl request_url = QUrl((QString(kMediaEndpoint)));
request_url.setPath(request_url.path() + url.path().mid(1));
QNetworkRequest request(request_url);
request.setRawHeader("Authorization", GenerateAuthorisationHeader());
return network_->post(request, QByteArray());