Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cevian authored and paulfantom committed May 9, 2022
1 parent 3638e21 commit e58c9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func corsWrapper(conf *Config, f http.HandlerFunc) http.HandlerFunc {

func setResponseHeaders(w http.ResponseWriter, samples *promql.Result, isExemplar bool, warnings storage.Warnings) {
w.Header().Set("Content-Type", "application/json")
if warnings != nil && len(warnings) > 0 {
if len(warnings) > 0 {
w.Header().Set("Cache-Control", "no-store")
}
if isExemplar {
Expand Down

0 comments on commit e58c9f5

Please sign in to comment.