Minor cleanups

This commit is contained in:
Matthew Holt 2019-05-28 18:52:21 -06:00
parent 9cd6f35e9d
commit da6a8cfc86
3 changed files with 2 additions and 4 deletions

View File

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

View File

@ -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)
}
}
}

View File

@ -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