Remove Connection header
This commit is contained in:
parent
7f3b6c4846
commit
82341247f7
@ -220,7 +220,6 @@ MatrixClient::sync() noexcept
|
|||||||
endpoint.setQuery(query);
|
endpoint.setQuery(query);
|
||||||
|
|
||||||
QNetworkRequest request(QString(endpoint.toEncoded()));
|
QNetworkRequest request(QString(endpoint.toEncoded()));
|
||||||
request.setRawHeader("Connection", "keep-alive");
|
|
||||||
|
|
||||||
auto reply = get(request);
|
auto reply = get(request);
|
||||||
connect(reply, &QNetworkReply::finished, this, [this, reply]() {
|
connect(reply, &QNetworkReply::finished, this, [this, reply]() {
|
||||||
@ -342,7 +341,6 @@ MatrixClient::initialSync() noexcept
|
|||||||
endpoint.setQuery(query);
|
endpoint.setQuery(query);
|
||||||
|
|
||||||
QNetworkRequest request(QString(endpoint.toEncoded()));
|
QNetworkRequest request(QString(endpoint.toEncoded()));
|
||||||
request.setRawHeader("Connection", "keep-alive");
|
|
||||||
|
|
||||||
auto reply = get(request);
|
auto reply = get(request);
|
||||||
connect(reply, &QNetworkReply::finished, this, [this, reply]() {
|
connect(reply, &QNetworkReply::finished, this, [this, reply]() {
|
||||||
|
Loading…
Reference in New Issue
Block a user