Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
Minor cleanups
Matthew Holt committed
May 28, 2019 at 18:52 UTC
da6a8cfc86620300734405d69c527856c0e71d66
3 files changed
+2
-4
modules/caddyhttp/caddyhttp.go
-1
@@ -24,7 +24,6 @@ func init() {
24
Name: "http",
25
New: func() interface{} { return new(App) },
26
})
27
-
27
if err != nil {
28
log.Fatal(err)
29
}
modules/caddyhttp/server.go
+2
@@ -77,6 +77,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
77
log.Printf("[ERROR] Handler: %s", err)
78
if handlerErr, ok := err.(HandlerError); ok {
79
w.WriteHeader(handlerErr.StatusCode)
80
+ } else {
81
+ w.WriteHeader(http.StatusInternalServerError)
82
}
83
}
84
}
modules/caddytls/connpolicy.go
-3
@@ -104,9 +104,6 @@ type ConnectionPolicy struct {
104
105
// TODO: Client auth
106
107
- // TODO: see if starlark could be useful here - enterprise only
108
- StarlarkHandshake string `json:"starlark_handshake,omitempty"`
109
-
107
matchers []ConnectionMatcher
108
certSelector certmagic.CertificateSelector
109