bergquist 8 سال پیش
والد
کامیت
8175783f93
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      pkg/api/app_routes.go
  2. 1 1
      pkg/models/datasource_cache.go

+ 2 - 2
pkg/api/app_routes.go

@@ -19,9 +19,9 @@ import (
 var pluginProxyTransport = &http.Transport{
 var pluginProxyTransport = &http.Transport{
 	TLSClientConfig: &tls.Config{
 	TLSClientConfig: &tls.Config{
 		InsecureSkipVerify: true,
 		InsecureSkipVerify: true,
-		Renegotiation: tls.RenegotiateFreelyAsClient,
+		Renegotiation:      tls.RenegotiateFreelyAsClient,
 	},
 	},
-	Proxy:           http.ProxyFromEnvironment,
+	Proxy: http.ProxyFromEnvironment,
 	Dial: (&net.Dialer{
 	Dial: (&net.Dialer{
 		Timeout:   30 * time.Second,
 		Timeout:   30 * time.Second,
 		KeepAlive: 30 * time.Second,
 		KeepAlive: 30 * time.Second,

+ 1 - 1
pkg/models/datasource_cache.go

@@ -48,7 +48,7 @@ func (ds *DataSource) GetHttpTransport() (*http.Transport, error) {
 	transport := &http.Transport{
 	transport := &http.Transport{
 		TLSClientConfig: &tls.Config{
 		TLSClientConfig: &tls.Config{
 			InsecureSkipVerify: true,
 			InsecureSkipVerify: true,
-			Renegotiation: tls.RenegotiateFreelyAsClient,
+			Renegotiation:      tls.RenegotiateFreelyAsClient,
 		},
 		},
 		Proxy: http.ProxyFromEnvironment,
 		Proxy: http.ProxyFromEnvironment,
 		Dial: (&net.Dialer{
 		Dial: (&net.Dialer{