aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--worker.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/worker.go b/worker.go
index f2be07f..99bef6f 100644
--- a/worker.go
+++ b/worker.go
@@ -129,7 +129,11 @@ func (wrk *worker) scan(linkq linkQueue) {
httpResp *http.Response
err error
)
- httpResp, err = http.Get(linkq.url)
+ if linkq.kind == atom.Img {
+ httpResp, err = http.Head(linkq.url)
+ } else {
+ httpResp, err = http.Get(linkq.url)
+ }
if err != nil {
if linkq.parentUrl == nil {
wrk.errq <- err