Keep-alive requests are not being sent after pressing a download button
In my application, I have a WPushButton which is linked to a file. The way I implemented this is as follows:
_file = std::make_shared<WFileResource>(); _downloadButton = _formTemplate->bindWidget("download", std::make_unique<WPushButton>(tr("DownloadButton"))); _downloadButton->setLink(WLink(_file));
In another part of my code I change the file which is attached to the download button:
_file->setFileName((const char *)fileName); _file->suggestFileName((const char *)suggestedFileName);
When pushing this button and subsequently downloading the attached file, the server stops sending keep-alive requests which results in a session that is being destructed. This happens with the latest git version.