Skip to content

Commit

Permalink
v0.11.11
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed Jun 8, 2021
1 parent 22396e8 commit a359d64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion copyparty/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: utf-8

VERSION = (0, 11, 10)
VERSION = (0, 11, 11)
CODENAME = "the grid"
BUILD_DT = (2021, 6, 8)

Expand Down
2 changes: 2 additions & 0 deletions copyparty/httpcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,8 @@ def _chk_lastmod(self, file_ts):
cli_lastmod = self.headers.get("if-modified-since")
if cli_lastmod:
try:
# some browser append "; length=573"
cli_lastmod = cli_lastmod.split(";")[0].strip()
cli_dt = time.strptime(cli_lastmod, HTTP_TS_FMT)
cli_ts = calendar.timegm(cli_dt)
return file_lastmod, int(file_ts) > int(cli_ts)
Expand Down

0 comments on commit a359d64

Please sign in to comment.