diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-01-22 14:52:54 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-01-22 14:52:54 +0200 |
commit | 4098cf67800214004d667f75a20242a39c14a24b (patch) | |
tree | 6cd183ef6b5ca10b6d280c27038fedd0fe20754d /src | |
parent | Remove Accept-Encoding header (diff) | |
download | nheko-4098cf67800214004d667f75a20242a39c14a24b.tar.xz |
Fix ci
Diffstat (limited to 'src')
-rw-r--r-- | src/MatrixClient.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index 6701198a..69888719 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc @@ -28,8 +28,6 @@ #include <QSettings> #include <QUrlQuery> -#include <zlib.h> - #include "Login.h" #include "MatrixClient.h" #include "Register.h" @@ -698,7 +696,7 @@ MatrixClient::fetchUserAvatar(const QUrl &avatarUrl, QNetworkRequest avatar_request(endpoint); auto reply = get(avatar_request); - connect(reply, &QNetworkReply::finished, this, [this, reply, onSuccess, onError]() { + connect(reply, &QNetworkReply::finished, this, [reply, onSuccess, onError]() { reply->deleteLater(); int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); |