mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-15 05:42:28 +00:00
Enable HTTP/2 for update checking and mapping updates
This commit is contained in:
parent
3485983553
commit
46940eb15a
2 changed files with 4 additions and 1 deletions
|
@ -39,7 +39,9 @@ void AutoUpdateChecker::start()
|
|||
|
||||
// We'll get a callback when this is finished
|
||||
QUrl url("https://moonlight-stream.org/updates/qt.json");
|
||||
m_Nam.get(QNetworkRequest(url));
|
||||
QNetworkRequest request(url);
|
||||
request.setAttribute(QNetworkRequest::Http2AllowedAttribute, true);
|
||||
m_Nam.get(request);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ void MappingFetcher::start()
|
|||
|
||||
QUrl url("https://moonlight-stream.org/SDL_GameControllerDB/gamecontrollerdb.txt");
|
||||
QNetworkRequest request(url);
|
||||
request.setAttribute(QNetworkRequest::Http2AllowedAttribute, true);
|
||||
|
||||
// Only download the file if it's newer than what we have
|
||||
QFileInfo existingFileInfo = Path::getCacheFileInfo("gamecontrollerdb.txt");
|
||||
|
|
Loading…
Reference in a new issue