mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9bb060124e
commit
848fe8096d
@ -140,7 +140,7 @@ class ContentServer(object):
|
|||||||
updated = self.build_time
|
updated = self.build_time
|
||||||
else:
|
else:
|
||||||
with cover as f:
|
with cover as f:
|
||||||
updated = fromtimestamp(os.stat(f.name).st_mtime)
|
updated = fromtimestamp(os.fstat(f.fileno()).st_mtime)
|
||||||
cover = f.read()
|
cover = f.read()
|
||||||
cherrypy.response.headers['Last-Modified'] = self.last_modified(updated)
|
cherrypy.response.headers['Last-Modified'] = self.last_modified(updated)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user