Skip to content

Commit

Permalink
Update the HTTP GET maven search API call to HTTPS to ensure the requ…
Browse files Browse the repository at this point in the history
…ests for search results are securely made

Signed-off-by: kthatipally <[email protected]>
  • Loading branch information
kthatipally committed Nov 11, 2024
1 parent 172d684 commit 6d4a331
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,8 @@ func constructArtifactFromSHA(jarFile string) (javaArtifact, error) {

sha1sum := hex.EncodeToString(hash.Sum(nil))

// Make an HTTP request to search.maven.org
searchURL := fmt.Sprintf("http://search.maven.org/solrsearch/select?q=1:%s&rows=20&wt=json", sha1sum)
// Make an HTTPS request to search.maven.org
searchURL := fmt.Sprintf("https://search.maven.org/solrsearch/select?q=1:%s&rows=20&wt=json", sha1sum)
resp, err := http.Get(searchURL)
if err != nil {
return dep, err
Expand Down

0 comments on commit 6d4a331

Please sign in to comment.