Merge pull request #2836 from brancz/cut-1.7.1

cut 1.7.1
This commit is contained in:
Frederic Branczyk 2017-06-12 13:41:21 +02:00 committed by GitHub
commit 3afb3fffa3
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
## 1.7.1 / 2017-06-12
* [BUGFIX] Fix double prefix redirect.
## 1.7.0 / 2017-06-06
* [CHANGE] Compress remote storage requests and responses with unframed/raw snappy.

View file

@ -1 +1 @@
1.7.0
1.7.1

View file

@ -171,7 +171,7 @@ func New(o *Options) *Handler {
instrf := prometheus.InstrumentHandlerFunc
router.Get("/", func(w http.ResponseWriter, r *http.Request) {
router.Redirect(w, r, path.Join(o.ExternalURL.Path, "/graph"), http.StatusFound)
http.Redirect(w, r, path.Join(o.ExternalURL.Path, "/graph"), http.StatusFound)
})
router.Get("/alerts", instrf("alerts", h.alerts))