diff options
| -rw-r--r-- | brokenlinks_test.go | 2 | ||||
| -rw-r--r-- | brokenlinks_worker.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/brokenlinks_test.go b/brokenlinks_test.go index b2d5c80..0624e73 100644 --- a/brokenlinks_test.go +++ b/brokenlinks_test.go @@ -43,7 +43,7 @@ func TestBrokenlinks(t *testing.T) { Code: jarink.StatusBadLink, }, { Link: `http:/127.0.0.1:11836`, - Error: `Head "http:/127.0.0.1:11836": http: no Host in request URL`, + Error: `Get "http:/127.0.0.1:11836": http: no Host in request URL`, Code: jarink.StatusBadLink, }, }, diff --git a/brokenlinks_worker.go b/brokenlinks_worker.go index 14ad615..81283a0 100644 --- a/brokenlinks_worker.go +++ b/brokenlinks_worker.go @@ -381,7 +381,7 @@ func (wrk *brokenlinksWorker) fetch(linkq linkQueue) ( const maxRetry = 5 var retry int for retry < 5 { - if linkq.kind == atom.Img || linkq.isExternal { + if linkq.kind == atom.Img { if wrk.opts.IsVerbose { wrk.log.Printf("scan: HEAD %s\n", linkq.url) } |
