print last-modified date in infos

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1100 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2003-12-10 20:40:56 +00:00
parent 85e2241d89
commit 1e198a3b4d
2 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,8 @@
* added Mandrake .spec file from Chris Green <cmg@dok.org>
Added: linkchecker.spec
Changed: MANIFEST.in
* print last-modified date for http links in infos
Changed: linkcheck/HttpUrlData.py
1.10.0 (released 7.12.2003)
* catch httplib errors in robotparser
@ -14,7 +16,6 @@
gave his own on the command line
Changed: linkcheck/UrlData.py
1.9.5 (released 31.10.2003)
* Add Zope to servers with broken HEAD support, adjusted the FAQ
Changed: linkcheck/HttpUrlData.py, FAQ

View file

@ -264,6 +264,9 @@ class HttpUrlData (ProxyUrlData):
self.setValid(`response.status`+" "+response.reason)
else:
self.setValid("OK")
modified = self.headers.get('Last-Modified', '')
if modified:
self.setInfo(i18n._("Last modified %s") % modified)
def getCacheKeys (self):