Enable http/3 support
This commit is contained in:
parent
30bbfeaea6
commit
5b929c9d1a
3 changed files with 16 additions and 9 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue