diff --git a/pkg/sync/handler.go b/pkg/sync/handler.go index e558f3fd..9edb88d7 100644 --- a/pkg/sync/handler.go +++ b/pkg/sync/handler.go @@ -34,7 +34,7 @@ func (h *HTTPHandler) GetSizeFromURL(url string) (size int64, err error) { ctx, cancel := context.WithTimeout(context.Background(), types.HTTPTimeout) defer cancel() - rr, err := http.NewRequestWithContext(ctx, "GET", url, nil) + rr, err := http.NewRequestWithContext(ctx, http.MethodHead, url, nil) if err != nil { return 0, err }