Skip to content

Commit

Permalink
Removing SSL-Check
Browse files Browse the repository at this point in the history
Disabling the SSL-Check in /pkg/crawl/html.go, so Sites with custom generated or faulty ssl-certs can be cloned
  • Loading branch information
KoEnix committed Oct 4, 2021
1 parent e959d47 commit 3b25479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/crawler/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (
// HTMLExtractor ...
func HTMLExtractor(link string, projectPath string) {
fmt.Println("Extracting --> ", link)


http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
// get the html body
resp, err := http.Get(link)
if err != nil {
Expand Down

0 comments on commit 3b25479

Please sign in to comment.