From 85f5f47f31f09f8dda6f6ab77749edddb17551a1 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 9 Apr 2020 13:09:48 -0600 Subject: caddytls: Don't initialize default internal issuer unless necessary Otherwise, a password prompt can occur unnecessarily. --- modules/caddyhttp/autohttps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp/autohttps.go') diff --git a/modules/caddyhttp/autohttps.go b/modules/caddyhttp/autohttps.go index ecb988a..44cf581 100644 --- a/modules/caddyhttp/autohttps.go +++ b/modules/caddyhttp/autohttps.go @@ -339,7 +339,7 @@ uniqueDomainsLoop: } redirTo += "{http.request.uri}" routes = append(routes, Route{ - MatcherSets: []MatcherSet{MatcherSet{MatchProtocol("http")}}, + MatcherSets: []MatcherSet{{MatchProtocol("http")}}, Handlers: []MiddlewareHandler{ StaticResponse{ StatusCode: WeakString(strconv.Itoa(http.StatusPermanentRedirect)), -- cgit v1.2.3