Browse Source

Minor cleanups

master
Matthew Holt 6 years ago
parent
commit
da6a8cfc86
  1. 1
      modules/caddyhttp/caddyhttp.go
  2. 2
      modules/caddyhttp/server.go
  3. 3
      modules/caddytls/connpolicy.go

1
modules/caddyhttp/caddyhttp.go

@ -24,7 +24,6 @@ func init() {
Name: "http",
New: func() interface{} { return new(App) },
})
if err != nil {
log.Fatal(err)
}

2
modules/caddyhttp/server.go

@ -77,6 +77,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
log.Printf("[ERROR] Handler: %s", err)
if handlerErr, ok := err.(HandlerError); ok {
w.WriteHeader(handlerErr.StatusCode)
} else {
w.WriteHeader(http.StatusInternalServerError)
}
}
}

3
modules/caddytls/connpolicy.go

@ -104,9 +104,6 @@ type ConnectionPolicy struct {
// TODO: Client auth
// TODO: see if starlark could be useful here - enterprise only
StarlarkHandshake string `json:"starlark_handshake,omitempty"`
matchers []ConnectionMatcher
certSelector certmagic.CertificateSelector

Loading…
Cancel
Save