1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-10-31 23:25:18 +00:00

Fix authentication

This commit is contained in:
Chris Josten 2022-07-20 23:13:42 +02:00
parent 69ddb18046
commit f34f3484f3
No known key found for this signature in database
GPG key ID: A69C050E9FD9FF6A

View file

@ -225,7 +225,7 @@ void ApiClient::addTokenHeader(QNetworkRequest &request) const {
authentication += ", DeviceId=\"" + d->deviceId + "\"";
authentication += ", Version=\"" + version() + "\"";
if (d->authenticated) {
authentication += ", token=\"" + d->token + "\"";
authentication += ", Token=\"" + d->token + "\"";
}
request.setRawHeader("X-Emby-Authorization", authentication.toUtf8());
}