Skip to content

Commit

Permalink
Merge pull request prometheus#13313 from kalpadiptyaroy/fix-quality-v…
Browse files Browse the repository at this point in the history
…alue-accept-header

bug: Fix quality value in accept header
  • Loading branch information
roidelapluie authored Dec 21, 2023
2 parents 75fc8a1 + b012366 commit 0763ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrape/scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ",")
}

Expand Down

0 comments on commit 0763ec8

Please sign in to comment.