diff options
Diffstat (limited to 'src/MatrixClient.cpp')
-rw-r--r-- | src/MatrixClient.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/MatrixClient.cpp b/src/MatrixClient.cpp index e1c890ed..b5ea7609 100644 --- a/src/MatrixClient.cpp +++ b/src/MatrixClient.cpp @@ -10,6 +10,7 @@ #include <QMetaType> #include <QObject> +#include <QStandardPaths> #include <QString> #include "nlohmann/json.hpp" @@ -33,7 +34,13 @@ namespace http { mtx::http::Client * client() { - static auto client_ = std::make_shared<mtx::http::Client>(); + static auto client_ = [] { + auto c = std::make_shared<mtx::http::Client>(); + c->alt_svc_cache_path((QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + + "/curl_alt_svc_cache.txt") + .toStdString()); + return c; + }(); return client_.get(); } |