use https for verification endpoints (#2185)

This commit is contained in:
ahrav 2023-12-06 16:06:04 -08:00 committed by GitHub
parent e6bc7f4451
commit c6e9b8ff64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -87,7 +87,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
} }
if verify { 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 { if err != nil {
continue continue
} }

View file

@ -49,7 +49,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
} }
if verify { 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 { if err != nil {
continue continue
} }

View file

@ -47,7 +47,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
} }
if verify { 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 { if err != nil {
continue continue
} }

View file

@ -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("DocumentText", "Excellent location, opposite a very large mall with wide variety of shops, restaurants and more.")
data.Add("PrivateKey", resMatch) 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 { if err != nil {
continue continue
} }