From 0bef74d499e28e96505498577e4aa1c3e00ef1e8 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 20 Feb 2017 13:39:46 -0500 Subject: vendor: update github.com/go-macaron/toolbox (#2857) Support HEAD requests of '/healthcheck' for service monitoring. --- vendor/github.com/go-macaron/toolbox/toolbox.go | 4 ++-- vendor/vendor.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'vendor') 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) { diff --git a/vendor/vendor.json b/vendor/vendor.json index cb07ebca..76b75cb2 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -117,10 +117,10 @@ "revisionTime": "2015-10-14T03:41:01Z" }, { - "checksumSHA1": "YAbqrTZNQv3/Jch5p1nJX6wHBaw=", + "checksumSHA1": "VMRkwnbl0mKWWvK/62CnIlv1oOg=", "path": "github.com/go-macaron/toolbox", - "revision": "99a42f20e9e88daec5c0d7beb4e7eac134680ab0", - "revisionTime": "2016-06-12T10:09:30Z" + "revision": "6766b8f16d1b135b250f09ba4dc4e24ab65b1107", + "revisionTime": "2017-02-20T18:37:56Z" }, { "checksumSHA1": "jEXpLrWXoQvH/zk1lW5Si0swr6Y=", -- cgit v1.2.3