Skip to content

Commit

Permalink
chore: skip TLS verification for blob storage
Browse files Browse the repository at this point in the history
  • Loading branch information
donch1989 committed Nov 19, 2024
1 parent 58b1344 commit f94ebb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion blobstorage/blobstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package blobstorage
import (
"bytes"
"context"
"crypto/tls"
"fmt"
"io"
"net/http"
Expand All @@ -28,7 +29,11 @@ func UploadFile(ctx context.Context, logger *zap.Logger, uploadURL string, data
req.Header.Set("Content-Type", contentType)
req.Header.Del("Authorization")

client := &http.Client{}
client := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
},
}
resp, err := client.Do(req)

if err != nil {
Expand Down

0 comments on commit f94ebb0

Please sign in to comment.