summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-04-09 13:09:48 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-04-09 13:09:48 -0600
commit85f5f47f31f09f8dda6f6ab77749edddb17551a1 (patch)
tree641944dce493d83155653226ebbe16c9c797c14c /modules/caddyhttp
parent6e4132eb89ccf399c97c9439f6f9ff9fcac21956 (diff)
caddytls: Don't initialize default internal issuer unless necessary
Otherwise, a password prompt can occur unnecessarily.
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/autohttps.go2
1 files changed, 1 insertions, 1 deletions
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)),