diff --git a/pkg/detectors/alibaba/alibaba.go b/pkg/detectors/alibaba/alibaba.go index ef69f847f..3dd5ce0ef 100644 --- a/pkg/detectors/alibaba/alibaba.go +++ b/pkg/detectors/alibaba/alibaba.go @@ -87,7 +87,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result } if verify { - req, err := http.NewRequestWithContext(ctx, "GET", "http://ecs.aliyuncs.com/?", nil) + req, err := http.NewRequestWithContext(ctx, "GET", "https://ecs.aliyuncs.com/?", nil) if err != nil { continue } diff --git a/pkg/detectors/heatmapapi/heatmapapi.go b/pkg/detectors/heatmapapi/heatmapapi.go index 284d06c13..b09812823 100644 --- a/pkg/detectors/heatmapapi/heatmapapi.go +++ b/pkg/detectors/heatmapapi/heatmapapi.go @@ -49,7 +49,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result } if verify { - req, err := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("http://www.heatmapapi.com/javascript/HeatmapAPI2.aspx?k=%s", resMatch), nil) + req, err := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://www.heatmapapi.com/javascript/HeatmapAPI2.aspx?k=%s", resMatch), nil) if err != nil { continue } diff --git a/pkg/detectors/sportradar/sportradar.go b/pkg/detectors/sportradar/sportradar.go index 49b49be3f..f265da56c 100644 --- a/pkg/detectors/sportradar/sportradar.go +++ b/pkg/detectors/sportradar/sportradar.go @@ -47,7 +47,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result } if verify { - req, err := http.NewRequestWithContext(ctx, "GET", "http://api.sportradar.us/nba/trial/v7/en/league/2022/01/05/changes.xml?api_key="+resMatch, nil) + req, err := http.NewRequestWithContext(ctx, "GET", "https://api.sportradar.us/nba/trial/v7/en/league/2022/01/05/changes.xml?api_key="+resMatch, nil) if err != nil { continue } diff --git a/pkg/detectors/text2data/text2data.go b/pkg/detectors/text2data/text2data.go index 7c602f4de..0572b7310 100644 --- a/pkg/detectors/text2data/text2data.go +++ b/pkg/detectors/text2data/text2data.go @@ -54,7 +54,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result data.Add("DocumentText", "Excellent location, opposite a very large mall with wide variety of shops, restaurants and more.") data.Add("PrivateKey", resMatch) - req, err := http.NewRequestWithContext(ctx, "POST", "http://api.text2data.com/v3/Analyze", strings.NewReader(data.Encode())) + req, err := http.NewRequestWithContext(ctx, "POST", "https://api.text2data.com/v3/Analyze", strings.NewReader(data.Encode())) if err != nil { continue }