diff --git a/debian/changelog b/debian/changelog index 8b226e97..d712d8e3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 19 Jun 2001 09:17:54 +0200 + linkchecker (1.3.2) unstable; urgency=low * new option --pause diff --git a/linkcheck/HttpUrlData.py b/linkcheck/HttpUrlData.py index 5d597e04..f7be8745 100644 --- a/linkcheck/HttpUrlData.py +++ b/linkcheck/HttpUrlData.py @@ -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) diff --git a/setup.py b/setup.py index f0a57e2b..38a69da3 100755 --- a/setup.py +++ b/setup.py @@ -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,