Skip to content

Commit

Permalink
Issue #13268: fix quality value in accept header
Browse files Browse the repository at this point in the history
Signed-off-by: Kumar Kalpadiptya Roy <kalpadiptya.roy@outlook.com>
  • Loading branch information
kalpadiptyaroy authored and bwplotka committed Jan 15, 2024
1 parent 683a46c commit e61e593
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 @@ -672,7 +672,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 e61e593

Please sign in to comment.