]> Cypherpunks repositories - gostls13.git/commit
misc/linkcheck: better redirect handling, use meaningful exit code
authorAndrew Gerrand <adg@golang.org>
Fri, 25 Oct 2013 14:31:02 +0000 (17:31 +0300)
committerAndrew Gerrand <adg@golang.org>
Fri, 25 Oct 2013 14:31:02 +0000 (17:31 +0300)
commite7426010c5a577bf2b1e84223036b2c55671f914
tree4906e9075f649341e3cfce8b30a36e4666ee42eb
parent2d6a13997a9e9b154b7761d41cdbc830e02fc18e
misc/linkcheck: better redirect handling, use meaningful exit code

Prevent linkcheck from following redirects that lead beyond the outside
the root URL.

Return a non-zero exit code when there are problems.

Some minor refactoring for clarity.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/14425049
misc/linkcheck/linkcheck.go