Fix authentication
This commit is contained in:
parent
69ddb18046
commit
f34f3484f3
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue