mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-25 10:48:04 +02:00
Fixed HTTP2 settings handling
This commit is contained in:
@ -227,3 +227,11 @@ bool Downloader::get(const QList<Download> &list,
|
||||
|
||||
return finishEmitted;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_HTTP2
|
||||
void Downloader::enableHTTP2(bool enable)
|
||||
{
|
||||
_http2 = enable;
|
||||
_manager->clearConnectionCache();
|
||||
}
|
||||
#endif // ENABLE_HTTP2
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
|
||||
static void setTimeout(int timeout) {_timeout = timeout;}
|
||||
#ifdef ENABLE_HTTP2
|
||||
static void enableHTTP2(bool enable) {_http2 = enable;}
|
||||
static void enableHTTP2(bool enable);
|
||||
#endif // ENABLE_HTTP2
|
||||
static void setNetworkAccessManager(QNetworkAccessManager *manager)
|
||||
{_manager = manager;}
|
||||
|
Reference in New Issue
Block a user