We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64cf8bc commit 4d089edCopy full SHA for 4d089ed
1 file changed
client/CDocSupport.cpp
@@ -237,6 +237,8 @@ libcdoc::result_t DDNetworkBackend::sendKey(
237
QNetworkRequest req(QString::fromStdString(url + "/key-capsules"));
238
req.setHeader(QNetworkRequest::ContentTypeHeader, QStringLiteral("application/json"));
239
if (expiry_ts) {
240
+ uint64_t expiry = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now() + std::chrono::months(6));
241
+ expiry_ts = std::min(expiry_ts, expiry);
242
req.setRawHeader("x-expiry-time", QDateTime::fromSecsSinceEpoch(expiry_ts).toString(Qt::ISODate).toLatin1());
243
}
244
if (!checkConnection()) {
0 commit comments