From b1aac725aa2cd1c47891119db24bcf034f3f7137 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Tue, 1 Nov 2022 19:41:49 -0400 Subject: [PATCH] try reddit without verifyign certificates --- internal/reddit/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/reddit/client.go b/internal/reddit/client.go index aeba123..c3376cc 100644 --- a/internal/reddit/client.go +++ b/internal/reddit/client.go @@ -2,6 +2,7 @@ package reddit import ( "context" + "crypto/tls" "fmt" "io" "net/http" @@ -99,6 +100,7 @@ func NewClient(id, secret string, statsd statsd.ClientInterface, redis *redis.Cl t.MaxIdleConns = connLimit / 2 t.MaxConnsPerHost = connLimit t.MaxIdleConnsPerHost = 100 + t.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} // TODO(andremedeiros): remove client := &http.Client{ Timeout: 5 * time.Second, Transport: t,