Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion shared/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"strconv"
"strings"
"syscall"
"time"
"unicode"

"github.com/rs/zerolog"
Expand Down Expand Up @@ -301,7 +302,8 @@ func ContainsUpperCase(str string) bool {
func GetURLBody(URL string) ([]byte, error) {
// Download the key from the URL
log.Debug().Msgf("Downloading %s", URL)
resp, err := http.Get(URL)
client := &http.Client{Timeout: time.Minute}
resp, err := client.Get(URL)
if err != nil {
return nil, Errorf(err, L("error downloading from %s"), URL)
}
Expand Down