Skip to content

Commit f88e830

Browse files
Merge pull request #31 from humingcheng/master
Fix the sslEnable error
2 parents ae3ecb2 + 255a315 commit f88e830

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ gen### Go template
2222

2323
.idea/
2424
vendor/
25-
!vendor/manifest
25+
!vendor/manifest
26+
*.log

monitoring.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func NewCseMonitorClient(header http.Header, url string, tlsConfig *tls.Config,
5454
updateAPIPath(apiVersion)
5555

5656
c, err := httpclient.GetURLClient(&httpclient.URLClientOption{
57+
SSLEnabled: tlsConfig != nil,
5758
TLSConfig: tlsConfig,
5859
ResponseHeaderTimeout: DefaultTimeout,
5960
})

0 commit comments

Comments
 (0)