Mercurial > cgi-bin > hgweb.cgi > tincan
changeset 41:9335865ae0bb draft
Fix bug.
author | David Barts <n5jrn@me.com> |
---|---|
date | Wed, 29 May 2019 09:47:27 -0700 |
parents | df27cf08c093 |
children | 8948020c54fd |
files | tincan.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tincan.py Wed May 29 09:40:32 2019 -0700 +++ b/tincan.py Wed May 29 09:47:27 2019 -0700 @@ -449,7 +449,7 @@ ims = bottle.request.environ.get('HTTP_IF_MODIFIED_SINCE') if ims: ims = self._parse_date(ims.split(";")[0].strip()) - if ims is not None and ims >= int(stats.st_mtime): + if ims is not None and ims >= int(mtime): headers["Content-Length"] = "0" return bottle.HTTPResponse(body=b"", status=304, headers=headers) # Standard response.