@ctrl/qbittorrent 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/qbittorrent.js +1 -1
- package/package.json +1 -1
package/dist/src/qbittorrent.js
CHANGED
@@ -541,7 +541,7 @@ export class QBittorrent {
|
|
541
541
|
}
|
542
542
|
this._sid = cookie.SID;
|
543
543
|
// Not sure if it might be lowercase
|
544
|
-
const expires = cookie.Expires ?? cookie.expires;
|
544
|
+
const expires = cookie.Expires ?? cookie.expires ?? cookie['Max-Age'];
|
545
545
|
// Default expiration is expected to be 1 hour
|
546
546
|
this._exp = expires ? new Date(expires) : new Date(Date.now() + 3600000);
|
547
547
|
return true;
|