Doesn't ignore web params when web.metrics.prometheus is set

This commit is contained in:
SALLEYRON Julien 2017-11-30 14:12:04 +01:00 committed by Traefiker
parent 40b3c17703
commit 1c8acf3929
2 changed files with 3 additions and 3 deletions

4
glide.lock generated
View file

@ -1,5 +1,5 @@
hash: 4595cac0a682ce8e36b78630f12a3cfab75307fc58cb4a1f5e416017d3ae20d6 hash: 4595cac0a682ce8e36b78630f12a3cfab75307fc58cb4a1f5e416017d3ae20d6
updated: 2017-11-29T12:05:49.613148632+01:00 updated: 2017-11-30T10:34:41.246378337+01:00
imports: imports:
- name: cloud.google.com/go - name: cloud.google.com/go
version: 2e6a95edb1071d750f6d7db777bf66cd2997af6c version: 2e6a95edb1071d750f6d7db777bf66cd2997af6c
@ -88,7 +88,7 @@ imports:
- name: github.com/codegangsta/cli - name: github.com/codegangsta/cli
version: bf4a526f48af7badd25d2cb02d587e1b01be3b50 version: bf4a526f48af7badd25d2cb02d587e1b01be3b50
- name: github.com/containous/flaeg - name: github.com/containous/flaeg
version: b5d2dc5878df07c2d74413348186982e7b865871 version: 60c87a513a955ca7225e1b1c772581cea8420cb4
- name: github.com/containous/mux - name: github.com/containous/mux
version: 06ccd3e75091eb659b1d720cda0e16bc7057954c version: 06ccd3e75091eb659b1d720cda0e16bc7057954c
- name: github.com/containous/staert - name: github.com/containous/staert

View file

@ -343,7 +343,7 @@ func fillStructRecursive(objValue reflect.Value, defaultPointerValmap map[string
contains := false contains := false
for flag := range valmap { for flag := range valmap {
// TODO replace by regexp // TODO replace by regexp
if strings.Contains(flag, name+".") { if strings.HasPrefix(flag, name+".") {
contains = true contains = true
break break
} }