From 82341247f733e9ffeded71bbe0e057eba8d3126c Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 10 Jan 2018 23:38:34 +0200 Subject: [PATCH] Remove Connection header --- src/MatrixClient.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index 67203d59..607fc1ae 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc @@ -220,7 +220,6 @@ MatrixClient::sync() noexcept endpoint.setQuery(query); QNetworkRequest request(QString(endpoint.toEncoded())); - request.setRawHeader("Connection", "keep-alive"); auto reply = get(request); connect(reply, &QNetworkReply::finished, this, [this, reply]() { @@ -342,7 +341,6 @@ MatrixClient::initialSync() noexcept endpoint.setQuery(query); QNetworkRequest request(QString(endpoint.toEncoded())); - request.setRawHeader("Connection", "keep-alive"); auto reply = get(request); connect(reply, &QNetworkReply::finished, this, [this, reply]() {