summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/private/internal.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/private/internal.go b/modules/private/internal.go
index a230bc744c..b1c868b40f 100644
--- a/modules/private/internal.go
+++ b/modules/private/internal.go
@@ -39,6 +39,7 @@ func decodeJSONError(resp *http.Response) *Response {
func newInternalRequest(url, method string) *httplib.Request {
req := newRequest(url, method).SetTLSClientConfig(&tls.Config{
InsecureSkipVerify: true,
+ ServerName: setting.Domain,
})
if setting.Protocol == setting.UnixSocket {
req.SetTransport(&http.Transport{