summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-05-28 18:52:21 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-05-28 18:52:21 -0600
commitda6a8cfc86620300734405d69c527856c0e71d66 (patch)
tree1377f71d3ff0eb247acc9ea5db7b272b5ebe2f6e /modules
parent9cd6f35e9d4873946060e79cb50643bae8ba8e2c (diff)
Minor cleanups
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/caddyhttp.go1
-rw-r--r--modules/caddyhttp/server.go2
-rw-r--r--modules/caddytls/connpolicy.go3
3 files changed, 2 insertions, 4 deletions
diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go
index 305a918..8255032 100644
--- a/modules/caddyhttp/caddyhttp.go
+++ b/modules/caddyhttp/caddyhttp.go
@@ -24,7 +24,6 @@ func init() {
Name: "http",
New: func() interface{} { return new(App) },
})
-
if err != nil {
log.Fatal(err)
}
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go
index 4a1aafd..a7fe02d 100644
--- a/modules/caddyhttp/server.go
+++ b/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)
}
}
}
diff --git a/modules/caddytls/connpolicy.go b/modules/caddytls/connpolicy.go
index 43ddb23..3241d3c 100644
--- a/modules/caddytls/connpolicy.go
+++ b/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