1
0
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:
2018-10-07 14:22:13 +02:00
parent 2f9751672e
commit f9af06267a
4 changed files with 21 additions and 5 deletions

View File

@ -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

View File

@ -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;}