@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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl/qbittorrent",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "TypeScript api wrapper for qbittorrent using got",
5
5
  "author": "Scott Cooper <scttcper@gmail.com>",
6
6
  "license": "MIT",