1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-25 02:15:17 +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 += ", DeviceId=\"" + d->deviceId + "\"";
authentication += ", Version=\"" + version() + "\""; authentication += ", Version=\"" + version() + "\"";
if (d->authenticated) { if (d->authenticated) {
authentication += ", token=\"" + d->token + "\""; authentication += ", Token=\"" + d->token + "\"";
} }
request.setRawHeader("X-Emby-Authorization", authentication.toUtf8()); request.setRawHeader("X-Emby-Authorization", authentication.toUtf8());
} }