diff options
author | Matthew Holt <[email protected]> | 2019-05-28 18:52:21 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2019-05-28 18:52:21 -0600 |
commit | da6a8cfc86620300734405d69c527856c0e71d66 (patch) | |
tree | 1377f71d3ff0eb247acc9ea5db7b272b5ebe2f6e /modules/caddyhttp/server.go | |
parent | 9cd6f35e9d4873946060e79cb50643bae8ba8e2c (diff) | |
download | caddy-da6a8cfc86620300734405d69c527856c0e71d66.tar.gz caddy-da6a8cfc86620300734405d69c527856c0e71d66.zip |
Minor cleanups
Diffstat (limited to 'modules/caddyhttp/server.go')
-rw-r--r-- | modules/caddyhttp/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go index 4a1aafde2..a7fe02de1 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) } } } |