Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Nov 21, 2022
1 parent 81dbdf2 commit 8ef73f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-test.yml
Expand Up @@ -22,4 +22,5 @@ jobs:
run: go test ./...

- name: Build
run: go build examples/main.go
run: go run main.go
working-directory: examples/
8 changes: 7 additions & 1 deletion examples/main.go
@@ -1,6 +1,7 @@
package main

import (
"crypto/tls"
"errors"
"log"
"net/http"
Expand Down Expand Up @@ -29,8 +30,13 @@ func main() {

client := &http.Client{
CheckRedirect: customRedirectHandler,
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
},
}
req, err := http.NewRequest(http.MethodGet, "https://projectdiscovery.io", nil)
req, err := http.NewRequest(http.MethodGet, "https://scanme.sh", nil)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 8ef73f5

Please sign in to comment.