diff options
author | ale <ale@incal.net> | 2014-12-20 13:10:17 +0000 |
---|---|---|
committer | ale <ale@incal.net> | 2014-12-20 13:10:17 +0000 |
commit | 3af8c9a229abb85ad75bef1c3526e44435befd02 (patch) | |
tree | ffe2794c6a65864e4bf3b1a0a5bc2dde05133a67 /cmd/links | |
parent | 7c1b1f70bdae7b28dad864570d6611321a703df0 (diff) | |
download | crawl-3af8c9a229abb85ad75bef1c3526e44435befd02.tar.gz crawl-3af8c9a229abb85ad75bef1c3526e44435befd02.zip |
move URLInfo logic into the Crawler itself
Diffstat (limited to 'cmd/links')
-rw-r--r-- | cmd/links/links.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/links/links.go b/cmd/links/links.go index e89e22d..eb97577 100644 --- a/cmd/links/links.go +++ b/cmd/links/links.go @@ -44,7 +44,7 @@ func main() { crawl.NewSeedScope(seeds), } - crawler, err := crawl.NewCrawler("crawldb", seeds, scope, crawl.FetcherFunc(http.Get), crawl.HandlerFunc(extractLinks)) + crawler, err := crawl.NewCrawler("crawldb", seeds, scope, crawl.FetcherFunc(http.Get), crawl.NewRedirectHandler(crawl.HandlerFunc(extractLinks))) if err != nil { log.Fatal(err) } |