fix traceback in init_dns_resolver, better warning with HTTP 301 redirects

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@274 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2001-06-19 07:27:31 +00:00
parent e139712d7f
commit 84601795b2
3 changed files with 16 additions and 3 deletions

8
debian/changelog vendored
View file

@ -1,3 +1,11 @@
linkchecker (1.3.3) unstable; urgency=low
* init_dns_resolver: forgot to import string.lower (Closes: #101044)
* when we have a HTTP 301 redirect and the url does not end with
a / remind the user of a potential missing / at the end of the url
-- Bastian Kleineidam <calvin@ap-w2k-bastiank> Tue, 19 Jun 2001 09:17:54 +0200
linkchecker (1.3.2) unstable; urgency=low
* new option --pause

View file

@ -150,8 +150,13 @@ class HttpUrlData(UrlData):
self.url = effectiveurl
if has301status:
self.setWarning(_("HTTP 301 (moved permanent) encountered: "
"you should update this link"))
self.setWarning(_("HTTP 301 (moved permanent) encountered: you "
"should update this link")
if self.url[-1]!='/':
self.setWarning(_("A HTTP 301 redirection occured and the url has no "
"trailing / at the end. All urls which point to (home) "
"directories should end with a / to avoid redirection"))
# check final result
if status >= 400:
self.setError(`status`+" "+statusText)

View file

@ -235,7 +235,7 @@ myname = "Bastian Kleineidam"
myemail = "calvin@users.sourceforge.net"
setup (name = "linkchecker",
version = "1.3.2",
version = "1.3.3",
description = "check HTML documents for broken links",
author = myname,
author_email = myemail,