mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
v0.11.11
This commit is contained in:
parent
22396e8c33
commit
a359d64d44
|
@ -1,6 +1,6 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
VERSION = (0, 11, 10)
|
VERSION = (0, 11, 11)
|
||||||
CODENAME = "the grid"
|
CODENAME = "the grid"
|
||||||
BUILD_DT = (2021, 6, 8)
|
BUILD_DT = (2021, 6, 8)
|
||||||
|
|
||||||
|
|
|
@ -994,6 +994,8 @@ class HttpCli(object):
|
||||||
cli_lastmod = self.headers.get("if-modified-since")
|
cli_lastmod = self.headers.get("if-modified-since")
|
||||||
if cli_lastmod:
|
if cli_lastmod:
|
||||||
try:
|
try:
|
||||||
|
# some browser append "; length=573"
|
||||||
|
cli_lastmod = cli_lastmod.split(";")[0].strip()
|
||||||
cli_dt = time.strptime(cli_lastmod, HTTP_TS_FMT)
|
cli_dt = time.strptime(cli_lastmod, HTTP_TS_FMT)
|
||||||
cli_ts = calendar.timegm(cli_dt)
|
cli_ts = calendar.timegm(cli_dt)
|
||||||
return file_lastmod, int(file_ts) > int(cli_ts)
|
return file_lastmod, int(file_ts) > int(cli_ts)
|
||||||
|
|
Loading…
Reference in a new issue