diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 91eeebb1..312404aa 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -245,11 +245,8 @@ class HttpCli(object): self.dvol = self.asrv.vfs.adel[self.uname] self.gvol = self.asrv.vfs.aget[self.uname] - # resend auth cookie if more than 1/3 of the lifetime has passed - # (rate-limited to prevent thrashing browser state, not for performance) - if pwd and self.conn.pwd_cookie_upd < self.t0 - 20 * 60 * self.args.logout: + if pwd: self.out_headerlist.append(("Set-Cookie", self.get_pwd_cookie(pwd)[0])) - self.conn.pwd_cookie_upd = self.t0 if self.is_rclone: uparam["raw"] = False diff --git a/copyparty/httpconn.py b/copyparty/httpconn.py index b0093af4..ae25070c 100644 --- a/copyparty/httpconn.py +++ b/copyparty/httpconn.py @@ -46,7 +46,6 @@ class HttpConn(object): self.stopping = False self.nreq = 0 self.nbyte = 0 - self.pwd_cookie_upd = 0 self.u2idx = None self.log_func = hsrv.log self.lf_url = re.compile(self.args.lf_url) if self.args.lf_url else None