Merge pull request #13313 from kalpadiptyaroy/fix-quality-value-accept-header

bug: Fix quality value in accept header
This commit is contained in:
Julien Pivotto 2023-12-21 11:40:30 +01:00 committed by GitHub
commit 0763ec841b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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, ",")
} }