Issue #13268: fix quality value in accept header
Signed-off-by: Kumar Kalpadiptya Roy <kalpadiptya.roy@outlook.com>
This commit is contained in:
parent
99c17b4319
commit
b012366c33
|
@ -675,7 +675,7 @@ func acceptHeader(sps []config.ScrapeProtocol) string {
|
||||||
weight--
|
weight--
|
||||||
}
|
}
|
||||||
// Default match anything.
|
// Default match anything.
|
||||||
vals = append(vals, fmt.Sprintf("*/*;q=%d", weight))
|
vals = append(vals, fmt.Sprintf("*/*;q=0.%d", weight))
|
||||||
return strings.Join(vals, ",")
|
return strings.Join(vals, ",")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue