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--
|
||||
}
|
||||
// Default match anything.
|
||||
vals = append(vals, fmt.Sprintf("*/*;q=%d", weight))
|
||||
vals = append(vals, fmt.Sprintf("*/*;q=0.%d", weight))
|
||||
return strings.Join(vals, ",")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue