aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/go-macaron/toolbox/toolbox.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-20 13:39:46 -0500
committerUnknwon <u@gogs.io>2017-02-20 13:39:46 -0500
commit0bef74d499e28e96505498577e4aa1c3e00ef1e8 (patch)
tree11a30c86c66013796754cd07e576d6a5387d99df /vendor/github.com/go-macaron/toolbox/toolbox.go
parent2322de653c4b5b4a1be19b54a64b6d20b308bdac (diff)
vendor: update github.com/go-macaron/toolbox (#2857)
Support HEAD requests of '/healthcheck' for service monitoring.
Diffstat (limited to 'vendor/github.com/go-macaron/toolbox/toolbox.go')
-rw-r--r--vendor/github.com/go-macaron/toolbox/toolbox.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/go-macaron/toolbox/toolbox.go b/vendor/github.com/go-macaron/toolbox/toolbox.go
index 94153ca2..46783c44 100644
--- a/vendor/github.com/go-macaron/toolbox/toolbox.go
+++ b/vendor/github.com/go-macaron/toolbox/toolbox.go
@@ -26,7 +26,7 @@ import (
"gopkg.in/macaron.v1"
)
-const _VERSION = "0.1.2"
+const _VERSION = "0.1.3"
func Version() string {
return _VERSION
@@ -125,7 +125,7 @@ func Toolboxer(m *macaron.Macaron, options ...Options) macaron.Handler {
for _, fd := range opt.HealthCheckFuncs {
t.AddHealthCheckFunc(fd.Desc, fd.Func)
}
- m.Get(opt.HealthCheckURL, t.handleHealthCheck)
+ m.Route(opt.HealthCheckURL, "HEAD,GET", t.handleHealthCheck)
// URL map.
m.Get(opt.URLMapPrefix, func(rw http.ResponseWriter) {