mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-31 09:44:50 +01:00
Set ContentTypeHeader for Tidal requests
This commit is contained in:
parent
2b9f153257
commit
aa583ec1aa
@ -99,7 +99,7 @@ QNetworkReply *TidalCoverProvider::CreateRequest(const QString &ressource_name,
|
||||
QUrl url(kApiUrl + QString("/") + ressource_name);
|
||||
url.setQuery(url_query);
|
||||
QNetworkRequest req(url);
|
||||
req.setRawHeader("Origin", "http://listen.tidal.com");
|
||||
req.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
|
||||
req.setRawHeader("X-Tidal-SessionId", service_->session_id().toUtf8());
|
||||
QNetworkReply *reply = network_->get(req);
|
||||
|
||||
|
@ -322,7 +322,7 @@ QNetworkReply *TidalService::CreateRequest(const QString &ressource_name, const
|
||||
QUrl url(kApiUrl + QString("/") + ressource_name);
|
||||
url.setQuery(url_query);
|
||||
QNetworkRequest req(url);
|
||||
req.setRawHeader("Origin", "http://listen.tidal.com");
|
||||
req.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
|
||||
req.setRawHeader("X-Tidal-SessionId", session_id_.toUtf8());
|
||||
QNetworkReply *reply = network_->get(req);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user