diff options
Diffstat (limited to 'cmd/links')
-rw-r--r-- | cmd/links/links.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/links/links.go b/cmd/links/links.go index 95f48d9..847f80f 100644 --- a/cmd/links/links.go +++ b/cmd/links/links.go @@ -8,6 +8,7 @@ import ( "flag" "log" "net/http" + "os" "strings" "git.jordan.im/crawl" @@ -20,8 +21,8 @@ var ( validSchemes = flag.String("schemes", "http,https", "comma-separated list of allowed protocols") ) -func extractLinks(p crawl.Publisher, u string, tag, depth int, resp *http.Response, _ error) error { - links, err := analysis.GetLinks(resp) +func extractLinks(p crawl.Publisher, u string, tag, depth int, resp *http.Response, body *os.File, _ error) error { + links, err := analysis.GetLinks(resp, body) if err != nil { // Not a fatal error, just a bad web page. return nil |