Browse Source

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

bug: Fix quality value in accept header
pull/13099/head^2
Julien Pivotto 11 months ago committed by GitHub
parent
commit
0763ec841b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      scrape/scrape.go

2
scrape/scrape.go

@ -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…
Cancel
Save